Dispose and Connection Pooling
-
I'm doing some test with sql connection polling using sqlconnection object. I've read some articles stating that the Dispose method of the connection removes the connection from the pool, but in my tests the Dispose doesn't remove it from the pool (I'm checking the audit logout event in the SQL Trace). The audit logout only happens when I close the application. My question is... does the dispose method remove the connection from the pool or not !?
-
I'm doing some test with sql connection polling using sqlconnection object. I've read some articles stating that the Dispose method of the connection removes the connection from the pool, but in my tests the Dispose doesn't remove it from the pool (I'm checking the audit logout event in the SQL Trace). The audit logout only happens when I close the application. My question is... does the dispose method remove the connection from the pool or not !?
Dispose does not remove a connection from the pool. Marcie http://www.codeproject.com