Link to home
Start Free TrialLog in
Avatar of kevinscheidt
kevinscheidt

asked on

Integration Services Roll back on Failure

I am new to integration services (sql server 2005) and am trying to set up a DTS package (SSIS Package).

In old sql, I would make a package.   As part of the package I would make it a transaction and roll back on failure.

I have a oracle database and a SQL database.  I want to import from oracle.table1 into sql.table1, replacing the rows in sql.table1 with those from oracle.  Using the wizard, it provides a turncate statement followed by a dataflow of import.

However, I need it to roll back to pre-turncate if the import fails.  What step am i missing?
ASKER CERTIFIED SOLUTION
Avatar of patrikt
patrikt
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kevinscheidt
kevinscheidt

ASKER

In the preparation step, I set it to "DELETE FROM TABLE X" instead of truncate.

I put a Sequence Container around the Control flow and set it to Transaction Required.
Thus, does this now mean that if the DataFlow Task fails, then the Transaction will roll back and undo the Preparation SQL task?
Yes, from what you wrtite it looks right. But please do the test example first before going to destroy production data :) :)