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 2005 Forums
 SSIS and Import/Export (2005)
 roll back SSIS changes

Author  Topic 

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-29 : 12:29:27
Greetings

Is it possible to ROLLBACK all changes et inserts to tables if one SQL task fails...How do you do that? is there a roll back feature?

Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-29 : 12:34:47
yup. you can do that by means of sequence container. put all the tasks you want to part of transaction inside a sequence container and make the transaction property of container as required. this will cause a new transaction to start each time control enters sequence container. In event of any error in any of tasks within container, all the changes done inside will be rollbacked.
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-29 : 12:59:08
DANG! SSIS is very confusing because it is so rich, what a powerful tool! if SQL were heaven visakh16 would be SQLeity (a SQL deity).

Thanks man!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-29 : 13:01:39
welcome
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-29 : 13:09:20
also see
http://www.mssqltips.com/tip.asp?tip=1585
Go to Top of Page

yosiasz
Master Smack Fu Yak Hacker

1635 Posts

Posted - 2009-01-29 : 15:20:25
V
when you say: "put all the tasks you want to part of transaction inside a sequence container and make the transaction property of container as required." property of the sequence container or the main package? Because I have two sequence containers and when I set both of their transaction property to required the first one fails instantly...

Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-30 : 12:53:39
i meant property of sequence container.
Go to Top of Page
   

- Advertisement -