How can you make the connection?

In establishing a connection is to have the appropriate driver connect to the DBMS. The following line of code illustrates the general idea:E.g.String url = "jdbc:odbc:Fred";Connection con = DriverManager.getConnection(url, "Fernanda", "J8");

Showing Answers 1 - 2 of 2 Answers

kk

  • Jul 6th, 2005
 

Connection con=DriverManager.getConnection(url,"Krish","k2");

  Was this answer useful?  Yes

Ramu Kondapalli

  • Jul 18th, 2006
 

First You can lode the driver calssee into your program.

This can be achived by the useing of follwing Code.

Class.forName("oracle.jdbc.driver.OracleDriver");

once the driver is avilable now u can get any number of connections, by the using of DriverManager Class.

Keep Smilling And Keep Updating

Ramu Kondapalli

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions