Oracle Connection

Reply

Join Date: Sep 2004
Posts: 1
Reputation: Azmat is an unknown quantity at this point 
Solved Threads: 0
Azmat Azmat is offline Offline
Newbie Poster

Oracle Connection

 
0
  #1
Sep 17th, 2004
Hello,

Please send me the equivalent code for the following
i.e the Database connecting code is written for MS Acess

I want to know for Oracle.


Class.forName("jdbc:odbc:dsnName");

Connection con=DriverManager.getConnection("jdbc.odbc.JdbcOdbcDriver","","");


can we use the same code(The above given) to connect to SQL Server.

With warm regards,
Azmat
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 35
Reputation: tigerxx is an unknown quantity at this point 
Solved Threads: 0
tigerxx tigerxx is offline Offline
Light Poster

Re: Oracle Connection

 
0
  #2
Sep 23rd, 2004
Originally Posted by Azmat
Hello,

Please send me the equivalent code for the following
i.e the Database connecting code is written for MS Acess

I want to know for Oracle.


Class.forName("jdbc:odbc:dsnName");

Connection con=DriverManager.getConnection("jdbc.odbc.JdbcOdbcDriver","","");


can we use the same code(The above given) to connect to SQL Server.

With warm regards,
Azmat

u can either give the dsn name as in case of sql server or can give the ip address + port no of ur db server and then try to connect
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC