File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Type of JDBC Drivers" Watch "Type of JDBC Drivers" New topic
Author

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?
Returns:
JDBC driver name
Throws:
SQLException - if a database access error occurs


regards
Shrinivas
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
... 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.


Ping & DNS - my free Android networking tools app
Smita Chopra
Ranch Hand

Joined: Jun 27, 2005
Posts: 45
Thanks a lot for the information.
 
wood burning stoves
 
subject: Type of JDBC Drivers
 
Similar Threads
How to find JDBC driver type ?
Strange SQLException
Informix JDBC, setQueryTimeout
choose jdbc driver type
JDBC Type $ Driver