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 would u connect to database using .NET?

Answer Posted / ramakrishna

sqlconnection cn =new sqlconnection("uid=sa;pwd=sa;data
source=servername;database=databasename");

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I delete a row from a DataTable?

1102


What is sqldatasource?

896


What is two way data binding android?

939


Command objects uses, purposes and their methods.

950


Explain the advantages and disadvantages of using datalist?

1040


What is the use of connection object in ado.net?

1007


What is the full form of ado?

955


how Sequence to connect and retrieve data from database using dataset?

1239


What are the drawbacks of using ado.net?

936


Define data adapter?

907


Why is ADO.NET serialization slower than ADO ?

1014


The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx

1984


What is the use of adodc?

960


Does sqlclient and oledb class share the same functionality?

885


Explain how to create dynamic gridview?

931