Im using ADO in ASP to make connections to a SQL Server 6.5 Server.
The problem is that the connection to the DB is remaining in the system activity window and is not being removed until 50-60 seconds.
This causes the maximim connections (15) to be reached and sql server errors occuring as result.
I expected the connections to be removed immediately.
I explicity create my ADO objects and close and set to nothing as appropriate
This is the type of code (not exact):
dim aCmd
dim aCon
dim aRs
set aCon = strCon
aCmd.ActiveConnection = aCon
aCmd.CommandType = adCmdText
aCmd.CommandText = "select ..."
set aRs = aCmd.Open
set aCmd.ActiveConnection = nothing
set aRs = nothing