We have an application running on Classic ASP which I'd like to get to use connection pooling.
The application currently uses this as its connection string:
"Provider=MSDASQL; Driver={SQL Server}; Server=db.example.com; Database=DBName; UID=Username; PWD=Password; ConnectionTimeout=15; CommandTimeout=120;"
When I bring up the ODBC connection pooling perfmon I don't see any connections in the pool.
I've read this article which suggests setting a value in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\ASP\Parameters but there's no \ASP key so I'm not sure if it applies to IIS 6.0.
Does anyone have experience with this issue? Is there a simple way to toggle pooling on?
The reference article (referenced at the bottom of the article you cited) states and on IIS 4.0 and later connection pooling defaults to on. So you don't need to enable it through the registry.
From another article:
Making sure to close the connection and using the same connection string again is the key to connection pooling. IIS will cache the connection and reuse it (essentially).
In order to get the counters up and working for ODBC connection pooling you must enable performance monitor in the ODBC Control panel :