944,219 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 9359
  • Java RSS
Sep 17th, 2004
0

Oracle Connection

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Azmat is offline Offline
1 posts
since Sep 2004
Sep 23rd, 2004
0

Re: Oracle Connection

Quote 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
Reputation Points: 10
Solved Threads: 0
Light Poster
tigerxx is offline Offline
35 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Images
Next Thread in Java Forum Timeline: JMF question: question about the unrealized player





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC