SqlConnection c = new SqlConnection(connectionstring here);
c.open()
do not forget to close the connection. Connection string depends on your application. for local SQL database with windows authentication, use:
"server=.;database=MyDatabase;integrated security=true"
For thousands of more connection strings, look
here[
new page]