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
What is the usage of the dataset object in ado.net?
Why do we use sqldataadapter?
What are the benefits of using ado.net?
Which control of the BindingNavigator returns the current position within the data source?
What is the difference between an ADO.NET Dataset and an ADO Recordset?
How to create dynamic gridview?
Explain advantages of ado.net?
What are the Features of a dataset
What is executequery?
Explain how to pass multiple tables in datasets simultaneously?
Is it possible to load multiple tables in a Dataset?
Explain the difference between sqlcommand object and command behavior object?
What are the difference between readonly vs. Const?
How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?
What are the advantages and disadvantages of using datalist?