| 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().
|
 |
 |
|
|
subject: How to find JDBC driver type ?
|
|
|