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
What is the difference between ado.net and entity framework?
What are different layers of ADO.Net?
What is ole data type?
What is ole2 format?
What is ole in vb?
What is the difference between typed and untyped dataset?
Explain how do you connect to sql server database without using sqlclient?
Define data adapter?
What is the difference between oledb sql server and oledbdotnet provider?
What is the use of Dataview?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What is difference between datagridview and datagrid control in winforms?
How to read data with the sqldatareader ?
What is ole in excel?
What is ado.net object model?