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
What is preparedstatement in jdbc?
Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.
What are the three basic components of the odbc architecture?
What is a jdbc connection?
What is the use of setFetchSize() and setMaxRows() methods in Statement?
What are the main components of JDBC ?
How to set NULL values in JDBC PreparedStatement?
What is jdbc thin client?
What are the different types of statements in jdbc?
What is the difference between client and server database cursors?
password, is stored in as plain text. What can I do to protect my passwords?
What is difference between jdbc and odbc?
Is jdbc a framework?
What is two-phase commit in the database?
What are the advantages of collection pools?