Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you create Connection?

Answer Posted / p.kodanda rami reddy

After loading the driver in order to refer the what kind of
database u communicate we Establish the connection with the
help of a static method called GETCONNECTION this is from
DRIVER MAMAGER.GETCONNECTION. accepting arguments as JDBC
URL ,USER NAME , PASSWORD
EX: DriverManager.getConnection
("jdbc:odbc:sid","scott","tiger");
here jdbc,odbc,sid -> is url and sid is service id.
scott - > is user name.
tiger - > is password.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the JDBC syntax for using a literal or variable in a standard Statement?

1039


How can I connect mysql or oracle with java?

1007


Which is best database for java?

1037


What is represented by the connection object?

1128


How can you make a connection?

1033


What is the full form of jdbc and what is its purpose?

1051


Explain Basic Steps in Writing a Java Program Using Jdbc?

1107


What is the purpose of the jdbc resultset interface?

959


Discuss the significances of jdbc.

962


What is a statement?

1057


What is jsp and jdbc?

956


What causes no suitable driver error?

1012


What is CLOB and BLOB datatypes in JDBC?

1396


What is jdbc driver for sql server?

1053


Describe odbc?

1017