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 datasource in ado.net?

584


Can datareader hold data from multiple tables?

675


What is an example of ordinal data?

485


What is ado full form?

504


What is untyped dataset?

541






How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

554


What are the several execute methods of ado.net?

500


What is ole in vb?

508


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

1636


What are the features of ado.net?

499


What do you mean by ‘batch updates’?

513


How to bind the controls(best practice) comboboxes to the data in the dataset?

540


Explain the difference between ado and ado.net?

505


Which keyword is used to accept variable number of parameters?

684


What is partial class?

550