Results 1 to 2 of 2

Thread: Microsoft.ApplicationBlocks.Data

  1. #1
    Join Date
    Dec 1969

    Default Microsoft.ApplicationBlocks.Data

    anyone know if we need to close the connection after using<BR><BR>the SQLHelper object ??<BR><BR>public void DeleteModuleControl(int moduleControlID)<BR> {<BR> SqlHelper.ExecuteNonQuery(conn, "DeleteModuleControl", moduleControlID);<BR> }

  2. #2
    Join Date
    Dec 1969

    Default RE: Microsoft.ApplicationBlocks.Data

    It actually depends. If you&#039;re opening the connection yourself, before you pass it to the SqlHelper method, then yes, you will need to close it. However, if you&#039;re just creating a new connection object, and letting the ExecuteNonQuery method open it, it&#039;ll clean it up too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts