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
What is different between sqlcommand object and command behavior object?
What is ado.net components?
What are the connected and disconnected modes in ado.net?
What are the various methods provided by the DataSet object to generate XML?
What is ado code?
Explain executenonquery?
What is the role of data provider in ado.net?
Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.
What is ado.net tutorial?
What is microsoft ado.net?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
What is the difference between ADO and ADO.Net?
how we can fire event in databound coulm in datagfrid withot using button?
Define the executescalar method?
What is openquery?