Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

In my connectionstring Pooling is enabled and set in range from 0 to 40 connections.
Still sometimes I have a email from my system that tells me the connectionpool is out of resources.

Is there a way to determin if how many connections in the pool are used and what the accompanying SqlCommand object is. In this way I can determine which db calls are finished but are left open (and find the bug I created myself)
Posted

1 solution

 
Share this answer
 
Comments
Herman<T>.Instance 31-Jul-12 5:08am    
thanks for the link. had seem them already. I really mis a code example on how to check this in Code.
Zoltán Zörgő 31-Jul-12 5:32am    
These are low level parameters you want to check. You can use PerformanceCounter class to access the performance counters, and you could start from this article to access SQL server profiling information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900