• Post Reply Bookmark Topic Watch Topic
  • New Topic

Type of JDBC Drivers

 
Smita Chopra
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... 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.
 
Smita Chopra
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the information.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!