What is SqlConnection.ClearAllPools ?
and what is pools in c sharp
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Apr 5, 2011, 1:22 AM
Pooling is the point where the connection is stored. When we open and close the connection but still that connection is stored in pooling. For every time SqlConnection will not create new connection insted it use the connection from that pool only. Pool will store our connection object in it the benifit of it is very fastly we can create the connection with database instead of creating new connection. SqlConnection.ClearAllPools will clear this poll object.
Krishna GaradPosted Apr 5, 2011, 1:38 AM