How to find out the max connection pool size

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

One of my web applications throws a SqlConnection exception occationally,
with the message saying unable to obtain a connection, and it may be due to
max connection pool size has been reached and there is no more connection
available. How can I find out (and change?) the max connection pool size?

Thanks
Bob
 
This usually happens when you fail to close your connections (often overlooked when using DataReaders). So i would go through your code and ensure that all methods close connections.
 
Thanks a lot guys. I'm aware that there are some code scrutiny I need to
do. And the URL below gives straightforward code to set the pool size
explicitly. Any way to find out the default pool size when it's not set
explocitly? There must be a default value.

Thanks again
Bob
 
Forgot this part. AFAIK the default is 100, likely enough in most cases ?

Patrice

--
 
Back
Top