I know that Using statement disposes out the object that is being created. Like if I wanted to do something like this:
Using(SqlConnection conn = new SqlConn
Just in the normal way:
Either
try { using(SqlConnection conn = new SqlConnection(connString)) { //some code } } catch (Exception exc) { //handle error }
or
using(SqlConnection conn = new SqlConnection(connString)) { try { //some code } catch (Exception exc) { //handle error } }