help plzz..

Results 1 to 2 of 2

Thread: help plzz..

  1. #1
    Join Date
    Dec 1969

    Default help plzz..

    Why is that it is not suggested not to have Database connection in global.asa file.

  2. #2
    Join Date
    Dec 1969

    Default RE: help plzz..

    It&#039;s acceptable to have a connection string in Global.asa. (A string you can reference to supply the ConnectionString property to a connection object.) But a connection is an object that exists only for the lifetime of the session. <BR><BR>Better yet, you should explicitly open and close the connection on each page so you do not tie up your server&#039;s resources. Very little time is actually spent using the connection object, so get rid of it as soon as possible as it is expensive.

Posting Permissions

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