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 is Serialization in .NET? what are the types of Serialization?

1079


What is connection pooling and what is the maximum pool size in ado.net connection string?

946


What is a column variable?

942


What is the role of clr?

951


What is dao and ado?

926


What are the core objects of ADO.NET?

1048


What is defaultview in datatable?

1031


What is openrowset?

988


Is entity framework better than ado.net?

1018


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

1020


Which provider is used to connect ms access, oracle, etc…?

1004


How do you update a dataset in ado.net?

1032


How do you find the count of records in a dataset?

978


What is adodb dll?

1003


What does adodb stand for?

1055