aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 39578
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print the version of JDBC in program
 
Similar Threads
connectivity
what is sqlj?
Query Time out
JDBC returning values using Scientific Notation
package oracle.jdbc.driver does not exist