This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 41062
    
  43
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
 
Don't get me started about those stupid light bulbs.
 
subject: How to print the version of JDBC in program
 
Similar Threads
what is sqlj?
connectivity
JDBC returning values using Scientific Notation
Query Time out
package oracle.jdbc.driver does not exist