G
Guest
We've been seeing a number of problems regarding connection pooling in an
application we've written in -house here -- we're getting the dreaded:
"The timeout period elapsed prior to obtaining a connection from the pool"
(connecting to SQL Server 2005, from 1.1 Framework application)
We've checked all the obvious things --
* checked that every new SqlConnection() is in a try...finally block that
will dispose the SqlConnection;
* Checked that SQL Debugging is disabled
We even ran a trace on the Server to track down every call made by a single
client from application start to error -- this did highlight that we were
only ever using a handful of different SPIDs on the server (max of 7 per
connection string) -- as this is significantly lower than the expected 100
(or so).
I'm at a bit of a loss as to what else to look at? We explicitly call
Dispose in all cases.
We're getting a little suspicious of the Server, as we've also seen separate
cases of simple queries timing out when made through a .Net application that
return instantaneously through Query Analyser or SQL Server Management Studio
application we've written in -house here -- we're getting the dreaded:
"The timeout period elapsed prior to obtaining a connection from the pool"
(connecting to SQL Server 2005, from 1.1 Framework application)
We've checked all the obvious things --
* checked that every new SqlConnection() is in a try...finally block that
will dispose the SqlConnection;
* Checked that SQL Debugging is disabled
We even ran a trace on the Server to track down every call made by a single
client from application start to error -- this did highlight that we were
only ever using a handful of different SPIDs on the server (max of 7 per
connection string) -- as this is significantly lower than the expected 100
(or so).
I'm at a bit of a loss as to what else to look at? We explicitly call
Dispose in all cases.
We're getting a little suspicious of the Server, as we've also seen separate
cases of simple queries timing out when made through a .Net application that
return instantaneously through Query Analyser or SQL Server Management Studio