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 jdbc url for mysql?

1032


How vendor Naming registry supports JNDI?

2206


Where jdbc drivermanager class is used?

967


What are clob and blob data types in jdbc?

1040


What is a merge field?

940


Is jdbc part of j2ee?

983


How can I create a custom RowSetMetaData object from scratch?

1006


What are the classes and methods used for sending sql statements to database?

1083


Does jdbctemplate close connection?

918


Why we use jdbc instead of odbc?

986


What is database connection pooling? Advantages of using a connection pool?

1060


What are the methods which can verify the cursor particular position?

1019


What is serialization and deserialization in java programming?

999


What are the common tasks of JDBC?

1000


What does the jdbc connection interface?

987