I run the whole thing as a single transaction, and my connection isn't released until it completes. It has never failed for me when running it as a single transaction.
My blog: SQL Soldier[/url] SQL Server Best Practices: SQL Server Best Practices Twitter: @SQLSoldier My book: Pro SQL Server 2008 Mirroring[/url] Microsoft Certified Master: SQL Server, Data Platform MVP Database Engineer at BlueMountain Capital Management[/url]