commit transaction closes connection ?

  • Thread starter Thread starter John Grandy
  • Start date Start date
J

John Grandy

Does committing a transaction close it's underlying connection ? Or must
you explicitly close the connection ?

Also, is there any reason to dispose a connection ?

My goal is to force the underlying connection to return to the connection
pool.

Thanks.
 
No, committing a connection does not (should not) close the connection. No,
there is no need to dispose of the connection object--but it must be closed
to return it to the pool.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
 
Back
Top