Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC driver string

 
Bhavin Sanghani
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi frnds,

how can i know the driver string of the diff.-diff database which we specify in class.forName("..")?

-bhavin
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhavin,
It's in the documentation and website for each database. Is there a particular one you are looking for?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that the "driver string" is typically the fully qualified class name of the database vendor specific JDBC driver.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34084
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dirk is correct. I was thinking of the URL connection string.
 
Bhavin Sanghani
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi frnds,

Thanks for the reply...ofcourse, info of driver will be available in doc of database..but my curiosity is to know about list of db with driver string..or if any standard is there? and database wise for diff version, string will be different? depreciation of that class is allowed?

while in ODBC that is not case because u can visualize it and select it...can i fulfill this purpose even with Java?

-bhavin sanghani
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic