How would u connect to database using .NET?
Answer Posted / rajeev ranjan lall
SqlConnection conn = new SqlConnection("Data
Source=ServerName;Initial Calalog=DatabaseName;User
ID=username;Password=password")
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
How to pass multiple tables in datasets simultaneously?
What are the difference between readonly vs. Const?
What are all the different methods under sqlcommand?
What are the ado.net components?
Explain the dataadapter class in ado.net?
How can we save all data from dataset?
What are the advantages of ado.net?
What is ado.net full form?
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
What is difference between ado.net and asp net?
What is the use of Dataview?
What is namespace in ado.net?
What is connected architecture in ado.net?
oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?
What are three methods for displaying data in a syncfusion datagrid