What does connection string consists of ?
Answer Posted / m.chandran
Connection String for SQL Server consist of:
1.Data Source or server= “.”; or "Localhost" or "127.0.0.1" or "serverNameinstanceName" or "N/W SQL server IP Address" Server instance.
2.Initial Catalog or database = “DATABASE_NAME”;
Either3.Uid=”UserID for SQL server” and Password= “Password for SQL server”;
ORIntegrated Security=”True”; Use Windows security
optional
5.Provider Name =”System.Data.SqlClient”;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I delete a row from a DataTable?
What is openrowset?
What is the difference between Data adaptor and Data set?
How to pass values into a datatable?
Which is faster dataset or datareader?
What are the usages of the command object in ado.net?
What is the difference between Dataset. clone and Dataset.copy?
How can we perform transactions in .net?
How can we load multiple tables in a dataset?
Explain ado.net features? Benefits? Drawbacks?
What is an ADO.Net?
How to find the given query is optimised one or not?
Explain all the classes those are used for database connections between sql server and asp.net?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
What are the various methods provided by the DataSet object to generate XML?