If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-09, 11:56
krati krati is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
db2 connection

hello everyone!

I am a beginner at Eclipse and DB2 .I have db2 express c edition windows .I am making a project and need to connect to DB2 database using my eclipse project.I tried importing package COM.ibm.db2.jdbc.app.* but cant find it there in Eclipse .If any of you have used Eclipse to connect and manipulate db2 database please guide me with how to import correct package and the connection string .
Reply With Quote
  #2 (permalink)  
Old 12-06-09, 03:41
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
goto support page of db2 udb and download the java drivers
copy them to a specific location and read this doc
Installing the IBM Data Server Driver for JDBC and SQLJ
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 12-06-09, 10:58
krati krati is offline
Registered User
 
Join Date: Dec 2009
Posts: 2
thank you sir.My connection worked.

But I have a new doubt to ask.I am new to DB2 and I want to insert data into DB2 database using my Java Program in which I have a GUI asking for name and roll no.
Please tell me how should I put the insert statement in my Java program :

insert into student values(textbox1.text,textbox2.text);
Reply With Quote
  #4 (permalink)  
Old 12-07-09, 04:33
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

or use a java book for database programming fundamentals..
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On