Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DB2 JDBC connections

 
peterrl doyle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to connect to a DB2 database using a JDBC connections.

Any help on how i do this?
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic