What is SqlConnection.ClearAllPools ?
and what is pools in c sharp
SqlConnection.ClearAllPools
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Apr 4, 2011, 9:22 PM EDT
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 GaradRank #191 · 12.8K reputationPosted Apr 4, 2011, 9:38 PM EDT