wood burning stoves*
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
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: 42608
    
  65
... 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Type of JDBC Drivers