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
In how many ways we can retrieve table records count? How to find the count of records in a dataset?
Why do we serialize data?
What is sqlconnection and sqlcommand?
Explain how to create dynamic gridview?
How is it possible to get 2 tables of data at a time by using data reader?
What is data relation in ado.net?
What are all the classes that are available in System.Data Namespace?
Define table relations?
What is the default provider in ado.net?
What do you know about ado.net's objects?
Explain how to find the given query is optimised one or not?
How to add a check box or a dropdown list to a column in a datagrid?
How to perform sorting on a table in ADO.NET?
Which is faster sqldataadapter and sqldatareader?
What is the difference between Data adaptor and Data set?