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...

What are the steps in connecting to database?

Answer Posted / sanket pandit

An alternate, and preferred way, to using the DriverManager class is to use a DataSource object.

This is for SQ L Ans.
1. The data source is registered on the server side, which stores connection information, like: host, port, sid, credentials (optional), driver to use, etc.

2. The application gets a handle on the data source through a JNDI lookup.

3. The DataSource object is a connection factory and you can invoke .getConnection()

One of the reasons it is preferred over the DriverManager is because it is more flexible. The connection in

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does executereader return?

1040


Which is the best method to get two values from the database?

1014


What is a serialized object?

1107


What is the difference between SqlCommand and SqlCommandBuilder?

1140


What two types of data providers does ADO.NET supply? What determines which one you should use?

1038


What is the use of sqldatareader class?

1053


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

2178


What is untyped dataset?

1146


Define executenonquery?

963


How is it possible to get 2 tables of data at a time by using data reader?

993


What does sqldatareader return?

1010


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

918


Explain the difference in record set and dataset?

997


What are the benefits of using of ADO.NET in .NET 4.0?

1154


Explain how do you connect to sql server database without using sqlclient?

1061