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 the difference between SqlCommand and SqlCommandBuilder?
What are the parameters that control most of connection pooling behaviors?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
How to creating a SqlCommand Object?
What is ado and rdo?
What do you know about ado.net's objects?
What are the benefits of using of ADO.NET in .NET 4.0?
How to identify the updated rows in a dataset?
Explain the differences between oledb sql server, oledbdotnet provider?
What are the Features and disadvantages of dataset
What is the advantage of ado.net?
What is the difference between a datareader and a dataset?
Which object needs to be closed?
How do you connect to sql server database without using sqlclient?
Explain advantages of ado.net?