Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Version of JDBC ?

 
Pankaj Batra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !,
I have JDK1.2 installed on my machine. How do I get to know what version of JDBC comes with it.
Pankaj
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe it's JDBC 2.0. That does not mean that your database driver will support it though. You can find out what version your DB supports.

Driver theDriver = DriverManager.getDriver(yourDatabaseURL);
System.out.println(theDriver.getMajorVersion() + "." + theDriver.getMinorVersion())

Bosun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic