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 How to find JDBC driver type ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to find JDBC driver type ?" Watch "How to find JDBC driver type ?" New topic
Author

How to find JDBC driver type ?

PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
Given a JDBC driver, how do i find the driver type ? Any API available for it ?
Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61
i dont know the answer for it .but i want to ask you a
question. provided with an api ,how would you use it in the application?


cheers,<br />Anandh
PNS Subramanian
Ranch Hand

Joined: Jul 13, 2004
Posts: 150
The reason for asking for an API is that, we use different drivers with different databases without actually knowing the type. And given a driver, how do we know what is its type ?
Well, it doesnt make a difference to the end result though as long as the JDBC API's are implemented by the driver.
Dilshad Marikar
Ranch Hand

Joined: Sep 08, 2004
Posts: 32
There is the DatabaseMetaData interface; the Connection.getMetaData() method returns an object that implements this. It has methods such as getDriverName(), getDriverVersion().
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find JDBC driver type ?