This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 42365
    
  64
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print the version of JDBC in program