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 untyped dataset?

542


What is the significance of CommandBehavior.CloseConnection ?

575


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

541


What is bubbled event can you please explain?

529


Explain why edit is not possible in repeater?

546






Explain the advantages and disadvantages of using datalist?

617


What is bubbled event?

537


Describe connection object in ado.net

543


Which object needs to be closed?

1751


How does entity framework work?

468


What are the uses of Stored Procedure?

562


How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

571


What is different between sqlcommand object and command behavior object?

544


Why do we use sqldataadapter?

486


What are the benefits of ADO.NET?

611