It's not a secret anymore!*
The moose likes JDBC and the fly likes cannot connect to db2 v8 trial version with jdbc 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 "cannot connect to db2 v8 trial version with jdbc" Watch "cannot connect to db2 v8 trial version with jdbc" New topic
Author

cannot connect to db2 v8 trial version with jdbc

Kelvin Mak
Ranch Hand

Joined: Oct 04, 2002
Posts: 51
I am using DB2 V8.1 trial version, and try to connect with JDBC. My code as following.

It always complain "No suitable driver", I check my reference about the driver string, it is ok. Is it any limit in the db2 trail vesion? Any one meet this situation? Why it cannot use the jdbc driver? thx in advance.


SCJP1.4
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
Doesn't look like you are registering the driver. Only loading the class. Try
 
 
subject: cannot connect to db2 v8 trial version with jdbc
 
Similar Threads
Why use Class.forName() to load driver
java.sql.SQLException: No suitable driver
Connecting to MSSQL2000
Driver to connect to the database
HELP please with SQL Server