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 a datagridview?

524


What is datasource in ado.net?

595


How is entity framework different from ado.net?

494


What is disconnected scenario in entity framework?

540


What is the difference between typed and untyped dataset?

514






How to Read, Add, Update and Delete record in Entity Framework ?

576


What are dcl commands?

512


What is typed dataset ?

685


What is Data Provider?

580


How will you fill the gridview by using datatable object at runtime?

562


What is the difference between ADO and ADO.Net?

597


What is openrowset?

508


Does entity framework use ado.net?

514


Define Execute Reader?

602


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?

623