File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Type of JDBC Drivers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Type of JDBC Drivers" Watch "Type of JDBC Drivers" New topic

Type of JDBC Drivers

Smita Chopra
Ranch Hand

Joined: Jun 27, 2005
Posts: 45
Is there a way to find out the JDBC driver I am using in my application.
By type I mean type1,...., type4 driver.
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
Use following method for this:

public String getDriverName()
throws SQLExceptionWhat's the name of this JDBC driver?
JDBC driver name
SQLException - if a database access error occurs

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
... and once you know the driver/class name, you can head over to Suns JDBC driver page to get more information on your particular driver.
Smita Chopra
Ranch Hand

Joined: Jun 27, 2005
Posts: 45
Thanks a lot for the information.
I agree. Here's the link:
subject: Type of JDBC Drivers
jQuery in Action, 3rd edition