• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I know which driver type I am using?

 
Josue Nelson
Greenhorn
Posts: 11
IBM DB2 Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using DB2 9.7 and I have the db2jcc.jar driver... How do I know which driver type it is?

Thanks in advance.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The documentation of the specific RDBMS / driver would be a good place to start.
If the driver is JDBC 4 compatible there's no need to load it via a Class.forName() anymore, though. A JDBC 4 compatible driver should have a file java.sql.Driver file located in the META-INF/services folder of the JDBC driver JAR file, which contains the FQN of the driver class.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


gives:



using: db2jcc4-9.5.1.jar

WP

 
Josue Nelson
Greenhorn
Posts: 11
IBM DB2 Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:

gives:



using: db2jcc4-9.5.1.jar

WP



Very helpful information. Thank you very much.

JN.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic