I find myself always digging through code and notes to find the syntax for creating a connection to a DB in C#.
There is a good article by Tony Patton about SQL Server connection strings and how use them in .NET (both C# and VB.NET examples).
Educate yourself about .NET SQL Server connection string syntax
ConnectionStrings.Com shows the syntax for just about every type of database (SQL, Access, MySQL, etc)
very good .. also check this one out too
The connection string reference on
http://prabirchoudhury.wordpress.com/2009/05/06/the-connection-string-reference/
By: Prabir Choudhury on May 12, 2009
at 3:39 pm