How would u connect to database using .NET?
Answer Posted / ramakrishna
sqlconnection cn =new sqlconnection("uid=sa;pwd=sa;data
source=servername;database=databasename");
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Which is faster ado.net or linq?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
Can we connect two dataadapters to same data source using single connection at same time?
What are the different execute methods of Ado.Net?
What is ado.net and its architecture?
What is the difference between typed and untyped dataset?
Some important instruction regarding ADO.NET connection string ?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
What is the use of SqlCommandBuilder?
What is the difference between connected and disconnected environment?
What is XML serialization
What are the Features of a dataset
What is shadow copy?
What is difference between sqldatareader and sqldataadapter?
Which property is used to check whether a DataReader is closed or opened?