I would like to know what could be best approach to open a SqlConnection with Sql Server 2008R2 Express Edition Database. This Version of Sql has Limit
SqlConnection
Sql Server 2008R2 Express Edition
Just use using as it disposes of the connection once done.
using
using(SqlConnection conn = new SqlConnection("Connection string")){ //do sql stuff conn.Open(); //etc etc conn.Close(); }