I have figured out how to create a global SQL connection object, using GLOBAL.ASA, in the following manner:
<object runat="server" scope="application" id="oConnGlobal" progid="ADODB.Connection"></object>
sGlobalSQLConnectionString = "Not shown here"
oConnGlobal.ConnectionTimeout = 240
oConnGlobal.CommandTimeout = 240
oConnGlobal.ConnectionString = sGlobalSQLConnectionString
oConnGlobal.Mode = adModeReadWrite
oConnGlobal.Open
This technique seems to be working okay, but over time, I have been reading up that this is not a good idea, and that the connection object should be created and closed during any SQL query throughout your code. Is this true, or is using a global SQL connection object in this manner okay?