Closing the Connection When Finished with a DataReader

Passing a DataReader to another routine needs to close the connection when the DataReader is closed

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.