What does connection string consists of ?

Answers were Sorted based on User's Feedback



What does connection string consists of ?..

Answer / sachin gupta

it consist
1. data source(Server)
2. database(Initial Catalog)
3. user name(Uid)
4. password(Pwd)
5. Integrated Security
6. Provider

Is This Answer Correct ?    13 Yes 0 No

What does connection string consists of ?..

Answer / ansu kamar

it consist of
data source
database
user name
password

Is This Answer Correct ?    11 Yes 0 No

What does connection string consists of ?..

Answer / hardit singh

sqlconnection con=new sqlconnection
("server=localhost;database=testdb;uid=sa;pwd=sa;");

Is This Answer Correct ?    1 Yes 0 No

What does connection string consists of ?..

Answer / 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

More ADO.NET Interview Questions

Which method do you invoke on the DataAdapter control to load your generated dataset with data?

5 Answers   IBM, Veegyapan Impacts,


What is @@rowcount and with small code snippet explain the usage?

4 Answers   BirlaSoft,


What are the different row versions available in table?

0 Answers  


What is ado asp?

0 Answers  


How do you update database through dataset?

0 Answers  


How to retrieve the user id which is provided while windows authentication?

0 Answers   Cap Gemini,


What is a dataview?

0 Answers  


What do you mean by ‘batch updates’?

0 Answers  


What is two way data binding android?

0 Answers  


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

0 Answers  


How to Handle the exceptions in Sqlsrver2000

3 Answers   SQL Star,


What are the usages of the command object in ado.net?

0 Answers  


Categories