Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 1st, 2004, 10:15 AM
shomzz shomzz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 shomzz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Oracle, Sql Server 2000 , Access

Hi there,

Can somebody please help me in connecting my java program to different databases :
Oracle 8i, sql server 200 and Ms Access.

what changes should be there in all these three databases for ...

Class.forName(.......);
Connection conn= DriverManager.getConnection(URL, id,password);


thank u
shomzz

Reply With Quote
  #2  
Old September 3rd, 2004, 07:36 AM
ankurjain02 ankurjain02 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 ankurjain02 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question how to connect java to sql server

Hi this is ankur here .....

i have tried to connect sql server from java but couldnt fine the connection string ..
So kindly tell me how con i get that string which is used in class.forName method

Reply With Quote
  #3  
Old September 13th, 2004, 02:37 PM
cup_o_java cup_o_java is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 cup_o_java User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
drivers

Quote:
Originally Posted by shomzz
Hi there,

Can somebody please help me in connecting my java program to different databases :
Oracle 8i, sql server 200 and Ms Access.

what changes should be there in all these three databases for ...

Class.forName(.......);
Connection conn= DriverManager.getConnection(URL, id,password);


thank u
shomzz

You will need a driver for each different database. Drivers can be downloaded from the database provider's website or you can probably find them by googling. Use the documentation to figure out what the class name of the driver is and then use it with the Class.forName method as you posted. Of course, the driver jar file will need to be included in your classpath.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Oracle, Sql Server 2000 , Access


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT