aspose 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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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!

Deeb kumar
Greenhorn

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

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
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDBC connection code for DB2 -- Please help!
 
Similar Threads
JDBC-ODBC(VERY VERY URGENT PLEASE)
Reuse of Data Source
WebSphere V6.1 Db2 V8.1 Connection Problem
java.sql.SQLException: No suitable driver
confused about using JDBC in Web Services