How would u connect to database using .NET?

Answer Posted / lalitkumar

sqlconnection con=new
sqlconnection("@server=.sqlexpress;database=master;trusted_connection=yes")

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ado connection?

690


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

826


What are the core objects of ADO.NET?

779


What are all the different authentication techniques used to connect to MS SQL Server?

739


What is ambient transaction?

681


What is acid in ado.net?

710


What is an ado?

728


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

776


What is a dynaset in access?

768


What is DataReader Object?

773


Explain the difference in an abstract class and an interface?

694


What Is Difference Between Ado And Ado.net?

745


Explain advantages of ado.net?

797


What are the steps to connect to a database?

736


Explain executenonquery?

786