File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes JDBC connection code for DB2 -- Please help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC connection code for DB2 -- Please help!" Watch "JDBC connection code for DB2 -- Please help!" New topic
Author

JDBC connection code for DB2 -- Please help!

Foni kumar
Ranch Hand

Joined: Sep 19, 2007
Posts: 66
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

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html
http://www.ibm.com/developerworks/data/library/techarticle/0203zikopoulos/0203zikopoulos.html


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC connection code for DB2 -- Please help!