Connection Object and Pooling
Hi all – this should be an easy question:
I have read that when you call a connection objects close() method, the object is not actually closed, but put into the pool (default is for 60 seconds). I have also read that when you call dispose() that close() is called implicitly. Does dispose() put the connection in the pool, or does it totally destroy the object.
Thanks
Re: Connection Object and Pooling
MSDN Help
Quote:
The Close method rolls back any pending transactions. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled. If Close is called while handling a StateChange event, no additional StateChange events are fired.
What we generally do is : Close the connection , Dispose it without running after these details . :D