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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?

935


What is a statement in java?

882


What is the role of class.forname while loading drivers?

990


What is jdbc driver for sql server?

994


What is the JDBC?

1058


Describe how the jdbc application works.

1011


What is jdbc in java?

907


How does jdbc work?

867


What are clob and blob data types in jdbc?

1022


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

975


How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?

972


What are the differences between execute, executequery, and executeupdate?

928


How many ways that we can view a result set?

978


How many jdbc driver types are there?

911


What is a statement?

997