Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!