Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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: 42969
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic