开发者

SqlConnection.ClearAllPools issue

开发者 https://www.devze.com 2022-12-08 03:42 出处:网络
I am using VSTS 2008 + .Net 3.5 + C# + ADO.Net + SQL Server 2008 Enterprise. I am learning http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.clearallpools.aspx about SqlConne

I am using VSTS 2008 + .Net 3.5 + C# + ADO.Net + SQL Server 2008 Enterprise. I am learning http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.clearallpools.aspx about SqlConnection.ClearAllPools method. I want to 开发者_StackOverflow社区know the behavior of this method is, if any connections from connection pool is idle when method ClearAllPools is called, such idle connections will be disconnected from SQL Server? Is that correct understanding?

I did not find related comments from the MSDN link.


The answer is Yes.
But the situations in which this is useful are rare.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号