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


Please Help Members By Posting Answers For Below Questions

What is ado.net objects?

521


What are the data providers in ADO.NET framework?

592


What are the benefits of ADO.NET?

604


What is difference between ado.net and asp net?

510


What are the benefits of using of ADO.NET in .NET 4.0?

537






What are datareaders?

530


How to enable and disable connection pooling?

505


How to store data in memory?

506


What is the difference between DataReader and DataSet in ADO.NET?

588


differences between ADO and ADO.NET

570


Which namespaces are used for data access?

621


What is difference between datareader and dataadapter?

546


What is aggregate root?

494


How can I retrieve two tables of data at a time by using data reader?

509


If a table contains 20000 records. In a page at each time 100 records to be displayed.

515