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 aggregate root?
Which name space is used to get assembly details?
Why is stored procedure used in ado.net?
What is dbcontext and dbset in entity framework?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What are the various methods provided by the DataSet object to generate XML?
What is ado control?
What is the difference in an abstract class and an interface?
What is sqldatasource?
Which control of the BindingNavigator returns the current position within the data source?
Explain advantages of ado.net?
How to identify the updated rows in a dataset?
What is a data control clerk?
What are the parameters that control most of connection pooling behaviours?