This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19651
    
  18

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!
 
Similar Threads
JDBC-ODBC(VERY VERY URGENT PLEASE)
java.sql.SQLException: No suitable driver
confused about using JDBC in Web Services
Reuse of Data Source
WebSphere V6.1 Db2 V8.1 Connection Problem