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

How to know the version of JDBC

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the JDBC driver you have installed. The JDBC API does not contain the actual code... that is supplied by the vendor.
 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic