permaculture playing cards*
The moose likes JDBC and the fly likes DB2 JDBC connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 JDBC connection" Watch "DB2 JDBC connection" New topic
Author

DB2 JDBC connection

Chris Bojinca
Greenhorn

Joined: Oct 14, 2002
Posts: 13
Can someone tell me what jar and what class file should I use to get a JDBC connection to a DB2 database?
Do you have an example of a method that gets such a connection?
Thank you very much
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

have a look at Toolbox for Java & JTOpen. You pretty much have 2 standard choices;
If the code is going to be run exclusively on the AS/400, then use the IBM Toolbox for java. If you are going to run it from a client or some other OS, then definitely use JTOpen.
Jamie
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: DB2 JDBC connection
 
Similar Threads
"JavaService" error when IBM JDBC driver is in classpath
Problem with the JDBC driver.
Could not create connection
As/400 Db2 Jdbc
WAS version