Forum Moderators: open
I ask becuase I am trying to clean my predecessor's code to move away from IIS (we can't afford the server version to get unlimited connections) and he never closed his database connections (IIS does it for you).
Any hints would be great,
Casey
Thanks,
Casey
conn.close
set conn = nothing
is how I would close
Casey
<%Dim strconn, conn
Function DBaseAction(SQLAdd, DataBaseName)
strconn="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE="
strconn=strconn & "c:\inetpub\db\" & DataBaseName & ";"
set conn=server.createobject("adodb.connection")
conn.open strconn
set DBaseAction= conn.execute(SQLAdd)
End Function %>
Start --> AdminTools --> Performance
You'll need to add some SQL Server Counters so click the '+' icon that's located on top of the performance grid, locate the SQL Server Objects you want to trace and then choose the counters.
Once you have that all set, start pounding away at your site (a crawler is good for this) and keep an eye on the perfmon.