This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes Type of JDBC Drivers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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: 35428
    
    9
... 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.


Android appsImageJ pluginsJava web charts
Smita Chopra
Ranch Hand

Joined: Jun 27, 2005
Posts: 45
Thanks a lot for the information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Type of JDBC Drivers
 
Similar Threads
Informix JDBC, setQueryTimeout
choose jdbc driver type
JDBC Type $ Driver
Strange SQLException
How to find JDBC driver type ?