Getting the Driver Version
The version of the installed Microsoft SQL Server 2005 JDBC Driver can be found in the following ways:
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 2005 JDBC Driver".
The following is an example of the output from calls to the methods of the SQLServerDatabaseMetaData class:
getDriverName = Microsoft SQL Server 2005 JDBC Driver
getDriverMajorVersion = 1
getDriverMinorVersion = 0
getDriverVersion = 1.0. xxx.x
Where "xxx.x" is the final version number.