The version of the installed Microsoft SQL Server JDBC Driver can be found in the following ways:
-
Call the SQLServerDatabaseMetaData methods getDriverMajorVersion, getDriverMinorVersion, or getDriverVersion.
-
The version is displayed in the readme.txt file of the product distribution.
In addition, the JDBC driver name can be returned from the getDriverName method call on the SQLServerDatabaseMetaData class. It will return "Microsoft SQL Server JDBC Driver 3.0".
The following is an example of the output from calls to the methods of the SQLServerDatabaseMetaData class:
getDriverName = Microsoft SQL Server JDBC Driver 3.0
getDriverMajorVersion = 3
getDriverMinorVersion = 0
getDriverVersion = 3.0.
xxx.x
Where "xxx.x" is the final version number.