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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, from what you wrtite it looks right. But please do the test example first before going to destroy production data :) :)
ASKER
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?