aspose file tools*
The moose likes JDBC and the fly likes Version of JDBC ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Version of JDBC ?" Watch "Version of JDBC ?" New topic
Author

Version of JDBC ?

Pankaj Batra
Greenhorn

Joined: Oct 17, 2000
Posts: 5
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

Joined: Nov 06, 2000
Posts: 1510
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


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Version of JDBC ?