Getting the driver version

Download JDBC driver

The version of the installed Microsoft JDBC Driver for SQL Server can be found in the following ways:

Also, the JDBC driver name can be returned from the getDriverName method call on the SQLServerDatabaseMetaData class. It returns, for example, "Microsoft JDBC Driver 12.8 for SQL Server".

The following lines are example output from calls to the methods of the SQLServerDatabaseMetaData class:

getDriverName = Microsoft JDBC Driver 12.8 for SQL Server

getDriverMajorVersion = 12

getDriverMinorVersion = 8

getDriverVersion = 12.8.xxx.x (Where "xxx.x" is the final version number)

See also

Diagnosing problems with the JDBC driver