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

Which method is used to sort the data in ADO.Net?

2034


What are all features of ADO.Net?

1044


What are the rules to implement connection pooling?

1121


What is a data control clerk?

1099


What is a datareader object?

1145


Do you use stored procedure in ado.net?

1085


What are dataproviders?

1024


What is data control techniques?

1003


Explain the two fundamental objects in ado.net?

1071


What are two important objects of ADO.Net?

1064


What is connected architecture in ado.net?

1183


What are the steps you will take to improve performance?

946


How to pass multiple tables in datasets simultaneously?

1116


How will you fill the gridview by using datatable object at runtime?

1113


What does executequery return?

1031