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
Which property is used to check whether a DataReader is closed or opened?
What are the ado.net components?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
can we create synonymn in ms access,sql server,my sql if so explain me with example
Why do we use sqldataadapter?
What are all the classes that are available in System.Data Namespace?
Is it possible to load multiple tables in a Dataset?
What two types of data providers does ADO.NET supply? What determines which one you should use?
How to add a javaScript function in a datagrid?
What is sqldatareader in ado.net?
What are the different row versions available in table?
What is ado full form?
What is ole in excel?
Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?
What is the meaning of executenonquery?