*
The moose likes JDBC and the fly likes How to print the version of JDBC in program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to print the version of JDBC in program" Watch "How to print the version of JDBC in program" New topic
Author

How to print the version of JDBC in program

Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Hi

Can any one help me to print the version number of the JDBC through the program.
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

Originally posted by Srinivas Kalvala:

Can any one help me to print the version number of the JDBC through the program.



version number of what ???

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Originally posted by Shailesh Chandra:



version number of what ???

Shailesh


Version of JDBC. whether it is 1.x or 2.x
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
The DatabaseMetaData interface lets you access version information for both the driver and the database.

[ Later: ] Crossed posts. You can use reflection to look for classes and methods that are part of JDBC 3 (or 2), but not in JDBC 2 (or 1).
[ May 12, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: How to print the version of JDBC in program