Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
What does "inactivity" means related to SQL Server Connection Pooling (ADO.NET)
Is it decided based on time ?If yes, then how to get the limit?
and what happenes when the inactivity limit reached?
Posted
Updated 19-May-12 3:52am
v2

1 solution

The inactivity is based on time. After certain amount of time a pooled connection is closed if it isn't reused. However a number of connections are kept in the pool. This amount of connections is controlled by MinPoolSize.

As far as I know there's no accurate time which the connection can stay inactive before it's destroyed. As per my understanding the workload, amount of free connections etc affect this.

The only parameters which has an effect to the lifetime regarding inactivity period are Connection Lifetime and Load Balance Timeout even though they directly don't define the inactivity period.
 
Share this answer
 
Comments
Espen Harlinn 19-May-12 12:16pm    
Nice reply :-D
Wendelius 19-May-12 15:49pm    
Thanks Espen :)

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