wood burning stoves 2.0
The moose likes Servlets and the fly likes JDBC driver for DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JDBC driver for DB2" Watch "JDBC driver for DB2" New topic

JDBC driver for DB2

Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Does anybody know what is the correct driver for DB2?
is that COM.ibm.db2.jdbc.app.DB2Driver?
any servlet example to connect database? thanks.
parul patidar
Ranch Hand

Joined: Sep 07, 2001
Posts: 53
go to
i hope u will find there
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Thanks. Yep. it's correct jdbc driver for DB2
Christian Waidner

Joined: Mar 29, 2001
Posts: 6
There are two valid Drivers to use with the IBM DB2:
driver: COM.ibm.db2.jdbc.DB2Driver
url: jdbc:db2:databasename
driver: COM.ibm.db2.jdbc.net.DB2Driver
url: jdbc:db2://servername ort/database
The first one requires a DB2-client installation on your pc, the second one requires the "Applet-Server" on your DB2 (see jstrt for details).


Christian Waidner<BR>Hirschbiegel & Grundstein GmbH<BR>http://www.hg-online.de
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
O. yes.
I did both of them in my code. thanks.
Connection con = DriverManager.getConnection("jdbc:db2 BNAME","","");
one is a driver, the other one is a dbURL.
I agree. Here's the link: http://aspose.com/file-tools
subject: JDBC driver for DB2
It's not a secret anymore!