R
Rory Smith via .NET 247
I have a similar problem to several other people who have postedhere - I can only open up to <Max Pool Size> connections. Afterthat I get a timeout expired exception.
Looking at the open / pooled connections in perfmon (in both SQLServer stats, and the CLR runtime), there are never more than 5/ 6 connections open, but without fail, I cannot open more than<Max Pool Size> connections, even when I change this value ordon't specify it.
I have already tried several suggested solutions - disabling SQLServer debugging in VS.net, running in release mode, connectingto several other databases on several other computers, butnothing seems to have any effect. I have gone through the codewith a fine tooth-comb, and put "open connection" counters intomy database class (all the connections are opened and closed bya single pair of shared functions - and yes, the connectionobject is passed by ref.), and ensured that the connections areactually reporting they are closed (via SqlConnection.State)both inside and outside the function that closes them.
I'm all out of ideas now. Any suggestions would be greatlyappreciated.
Looking at the open / pooled connections in perfmon (in both SQLServer stats, and the CLR runtime), there are never more than 5/ 6 connections open, but without fail, I cannot open more than<Max Pool Size> connections, even when I change this value ordon't specify it.
I have already tried several suggested solutions - disabling SQLServer debugging in VS.net, running in release mode, connectingto several other databases on several other computers, butnothing seems to have any effect. I have gone through the codewith a fine tooth-comb, and put "open connection" counters intomy database class (all the connections are opened and closed bya single pair of shared functions - and yes, the connectionobject is passed by ref.), and ensured that the connections areactually reporting they are closed (via SqlConnection.State)both inside and outside the function that closes them.
I'm all out of ideas now. Any suggestions would be greatlyappreciated.