This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC connection code for DB2 -- Please help!

 
Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can any one please provide me java code snippet which can connect my java application(i am using eclipse) to DB2 database. I am kind of new to the JDBC connection so it will be great if you can also mention if any input parameters i need to set for setting up this connection. Once connected to the java application it should also show up a message in my java console saying "Connection successful"

I really appreciate for any help in this regard.
Regards,
Deb

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic