Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO Open connections 1

Status
Not open for further replies.

beruken

Programmer
Mar 12, 2002
22
US
Can anyone tell me the implications or Pros/Cons on keeping a DB connection open via the Global.asa? This is on an Intranet.
 
It is a bad idea to cache connections in an application object. If one connection is cached in the application object and multiple pages access the connection, they will all contend for use of the connection.

Create and destroy the connection on every page that uses the connection.

gordon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top