my dog learned polymorphism*
The moose likes JDBC and the fly likes How to know the version of JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to know the version of JDBC" Watch "How to know the version of JDBC" New topic
Author

How to know the version of JDBC

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I have jdk1.3 installed on my machine and in the api's docs when i goto java.sqlpackage
PreparedStatement has some methods like setClob(),setBlob()
and in bracket it is written as(JDBC 2.0)
does it mean that my jdk1.3 donot contain JDBC 2.0
if yes then how can i get JDBC2.0
in other words how can i know the version of JDBC Im using??


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
It depends on the JDBC driver you have installed. The JDBC API does not contain the actual code... that is supplied by the vendor.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I m using JDBC-ODBC Bridge Driver
now any comments???
Originally posted by Thomas Paul:
It depends on the JDBC driver you have installed. The JDBC API does not contain the actual code... that is supplied by the vendor.

Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html
And here's why you shouldn't use the ODBC bridge:
<A HREF="http://java.sun.com/products/jdk/faq/faq-sun-packages.html</A rel="nofollow">" TARGET=_blank>http://java.sun.com/products/jdk/faq/faq-sun-packages.html[/URL] http://java.sun.com/products/jdk/1.2/docs/guide/jdbc/bridge.html

Status of the JDBC-ODBC Bridge
The JDBC-ODBC Bridge should be considered a transitional solution. Javasoft and Intersolv are working to make the Bridge more reliable and robust, but they do not consider it a supported product. In the near future, development of pure-Java JDBC Drivers will make the JDBC-ODBC Bridge unnecessary.
From the 1.3 doc:
The JDBC-ODBC Bridge driver is recommended only for experimental use or when no other alternative is available.
Look here for other alternatives: http://industry.java.sun.com/products/jdbc/drivers
------------------
Moderator of the JDBC Forum
[This message has been edited by Thomas Paul (edited March 13, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to know the version of JDBC