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 / chaitanya.k

1. U need to declare name space according to which database
u need to connect.

2. U can declare connection string in two ways.

1. U can declare in web.config in appsettings.
2. U can delare directly in code behind or in inline code

These can delared by using connection string.

3. Then u can do the operations by open the connection.
4. After complete all ur transcations u need to close the
database.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are ado.net objects?

1117


Explain the various objects in dataset.

996


Explain the difference between data reader and data adapter?

973


What is acid in ado.net?

1030


Why is stored procedure used in ado.net?

1124


What are good ado.net object to replace to ado recordset object.

1123


What is the meaning of executenonquery?

1066


What are the advantages and drawbacks of using ado.net?

1110


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

1055


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

939


What is XML serialization

1060


Explain the differences between oledb sql server, oledbdotnet provider?

1014


What are the essential features of ado.net?

955


What is a non query?

932


What is difference between connected and disconnected architecture in ado.net?

1154