This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes DB2 JDBC  connections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 JDBC  connections" Watch "DB2 JDBC  connections" New topic
Author

DB2 JDBC connections

peterrl doyle
Greenhorn

Joined: Dec 12, 2005
Posts: 1
I want to connect to a DB2 database using a JDBC connections.

Any help on how i do this?
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

First you need to get the DB2 JDBC driver. This can be downloaded off the net, although I believe there's a jar that comes with DB2 install that you can also use.

Once you have this installed in both your build environment and run-time server environment, you just need to direct JDBC to use this driver. The rest is just learning the basics of JDBC.


My Blog: Down Home Country Coding with Scott Selikoff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 JDBC connections