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 / rajeev ranjan lall

SqlConnection conn = new SqlConnection("Data
Source=ServerName;Initial Calalog=DatabaseName;User
ID=username;Password=password")

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the architecture of ado.net?

1133


Is ado.net dead?

1060


What is typed dataset ?

1236


What is ado code?

998


How to retrieve the user id which is provided while windows authentication?

1149


What is the difference between Dataset. clone and Dataset.copy?

1096


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

1069


What is the full form of ado.net?

1036


What is executenonquery ado.net?

973


How to creating a SqlCommand Object?

1199


Explain ODP.net

1063


differance between ADO vs ADO.Net?

1135


Can datareader hold data from multiple tables?

1227


How can we perform transactions in .net?

1105


What do you mean by ‘batch updates’?

1088