What does connection string consists of ?
Answers were Sorted based on User's Feedback
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 |
Answer / ansu kamar
it consist of
data source
database
user name
password
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / hardit singh
sqlconnection con=new sqlconnection
("server=localhost;database=testdb;uid=sa;pwd=sa;");
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
What are the benefits of using ado.net?
Give an example that shows how to execute a stored procedure in ado.net?
what is data Adapter?
26 Answers CMC, CSS, IBM,
What provider ADO.net use by default ?
5 Answers Accenture, BirlaSoft, Wipro,
What does executereader return?
Define data access layer?
What is connected architecture in ado.net?
What is ambient transaction?
Explain ado.net features? Benefits? Drawbacks?
What is Debug.write does?
If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?
How would you connect to database using .NET?