Hi friends.
I am wokring with a .net c# application.
How can I create a connection string for my database.
Is it must to include my account user name and passowrd or it is accepting default windows authentication?
Please provide me the correct way to generate the sqlconnection string.
Where to get connection string from
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Oct 21, 2008, 9:37 AM EDT
You didn't say what your database is but check out the following site which has connection strings for all the popular ones:
http://www.connectionstrings.com/
Rohit K29 reputationPosted Oct 26, 2008, 9:15 AM EDT
Secondly, when you installed SQL Server, which option you selected. Windows Authentication or SQL Server Authentication?
A normal connection string looks like:
Data Source=localhost\SQLExpress;Initial Catalog=