SCJP 5, SCWCD 5
Prabhakar Reddy Bokka wrote: using above method you can identify.
-Abhishek
I came to this world on a Learner's License
Abhishek Ralhan wrote:Why don't you look into driver documentation. I am sure you will get the answer.
Otherwise, this is what I found when i googled, may be you would be interested in:
http://hsqldb.org/doc/src/org/hsqldb/jdbcDriver.html
which says,
int getMajorVersion() Gets the driver's major version number.
int getMinorVersion() Gets the driver's minor version number.
it has two methods to get the versin of your driver.
Is that what you are looking for??
They say you have to be the first, the best or different. I say, is it too much to ask for all three.
Sumukh Deshpande wrote:
I am not looking for versions.
I am looking for TYPE such TYPE I or TYPE II etc.
Misha Ver wrote:Try getDriverName - http://www.hsqldb.org/doc/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.html
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:
Misha Ver wrote:Try getDriverName - http://www.hsqldb.org/doc/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.html
What makes you think that the Driver type will be included in the Driver name ?
Where did I say that it will be included?
It works for JSQLConnect driver and could work for others too.
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:
Where did I say that it will be included?
Sandeep asks for the Driver Type, and you tell him to use getDriverName.
It works for JSQLConnect driver and could work for others too.
Never assume anything. If the API doesn't tell you what the returned value is, it may be vendor specific.
For your interest, this is what I got with Oracle's driver: "Oracle JDBC driver".
-Abhishek
I came to this world on a Learner's License
Christophe Verré wrote:
Where did I say that it will be included?
Sandeep asks for the Driver Type, and you tell him to use getDriverName.
Christophe Verré wrote:
It works for JSQLConnect driver and could work for others too.
Never assume anything. If the API doesn't tell you what the returned value is, it may be vendor specific.
For your interest, this is what I got with Oracle's driver: "Oracle JDBC driver".
Sumukh Deshpande wrote:So does it mean there is no way we cam find out the TYPE programatically?