Saturday, 27 April 2013

Will the connection be closed, if the SqlConnection object goes out of scope? | ASP.Net interview questions

No, If the SqlConnection goes out of scope, it won't be closed. Therefore, you must explicitly close the connection by calling Close or Dispose.


No comments: