Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get the JDBC version installed?

Status
Not open for further replies.

Pitone

Programmer
Oct 12, 2004
15
IT
Hi everybody, could someone help me finding the version that I have installed on my AIX?
Thanks

Fabio
 
If you're after information regarding what features any particular database supports, you could use the java.sql.DatabaseMetaData class which is obtained from the JBDC Driver.

Tim
 
No I just need to know which version is installed. On my AIX I have a 1.3.1 java version. Is there a command to check the JDBC version installed?

Thanks
 
The Sun JDK doesn't exhibit a 'JDBC Version'. The classes provided in the Sun API are merely interfaces. It's the JDBC Drivers, obtained separately and specific to each kind of database, which exhibit 'versionness', and as far as I'm aware the way to decide if any given JDBC driver will do what you want is to use the class I've already pointed out.

If the JDBC driver jar provides an implementation of javax.sql.DataSource then it supports both the old (via DriverManager) and new way (DataSource implementation registered via a JNDI provider) of creating connections.

Tim
 
... however, if you mean 'what version of JDBC can my JDK support', then I know that Java 1.3 supports JDBC2 drivers (I'm not sure if any previous to this do). Java 1.4 introducted support for JDBC3 drivers. You need to check the specific JDBC driver documentation to see what level of JDBC it provides.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top