Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Commiting and rolling back transactions in SSIS

Author  Topic 

andrewhopkinson
Yak Posting Veteran

63 Posts

Posted - 2010-06-08 : 09:41:25
Hey folks, what is the best way to wrap and SSIS package in a transaction so it rolls back if there are any errors? I have one master package that calls many sub packages that do simple data flow tasks. Thanks.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-06-08 : 10:04:13
Read this, I found that helpful.
Have a special look at MSDTC.

http://www.mssqltips.com/tip.asp?tip=1585


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

andrewhopkinson
Yak Posting Veteran

63 Posts

Posted - 2010-06-08 : 10:25:55
Okay, so if I have a master package that truncates all the tables, then runs sub packages, if I set the TransactionOption to Required, will it automatically rollback if there any failures in the sub packages or do I need to set their transactionoptions too? thanks.
Go to Top of Page
   

- Advertisement -