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 know which driver is connected to a database?

Answers were Sorted based on User's Feedback



How do you know which driver is connected to a database?..

Answer / venkat

Whenever u want to connect with DB
U need to config two
They r
1.Class.forName("DriverClass name");
2.Connection con =driverManager.getConection("URL Of
Manager Class");

Is This Answer Correct ?    8 Yes 1 No

How do you know which driver is connected to a database?..

Answer / ramakant

// By the help of DatabaseMetadata it gives all the
information about the date base for which our progrim is
connected
// here it goes

1.Class.forName("DriverClass name");
2.Connection con =driverManager.getConection("URL Of
Manager Class");
DatabaseMetada dmeta= con.getMetadata();
// by calling the method getDriverName() name we can
able to know that which driver is coonected to the database.
3. System.out.println(" driver name " +
dmeta.getDriverName())

Is This Answer Correct ?    8 Yes 1 No

How do you know which driver is connected to a database?..

Answer / nadia

// By the help of DatabaseMetadata it gives all the
information about the date base for which our progrim is
connected
// here it goes

1.Class.forName("DriverClass name");
2.Connection con =DriverManager.getConection("URL Of
Manager Class");
DatabaseMetadata dmeta= con.getMetadata();
// by calling the method getDriverName() name we can
able to know that which driver is coonected to the database.
3. System.out.println(" driver name " +
dmeta.getDriverName());

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More JDBC Interview Questions

What is the major difference between java.util.date and java.sql.date data type?

0 Answers  


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

0 Answers  


What is metadata in java programming?

0 Answers  


List the advantages of using datasource?

0 Answers  


What is jdbc type?

0 Answers  


what does the method Class.forName returns?

4 Answers   Siemens, TCS,


What are the components of jdbc?

0 Answers  


What is the difference between client and server database cursors?

0 Answers  


what is the difference between SENSITIVE and INSENSITIVE?

1 Answers  


explain about special characters?

0 Answers  


what is metadata and it's use?

3 Answers  


Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

0 Answers  


Categories