Click here to Skip to main content
16,016,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to rollback a package in ssis
Posted

Hi,

First way i am suggesting To Roll Back the ssis etl package you need to define package level transaction in Event handler and place your code to roll back in Script task.

Anotherway is to Place all Tasks withing single Sequence Containder and enable container level transaction and then set transaction property for all other tasks to support this main transaction initiated by container, now all tasks will execute in single transaction and if any failure occur then it will be roll backed.

Regards,
Mubin
 
Share this answer
 
Hi,

We need to perform the following steps in order to achieve your requirement:

1. We should make the parent level transaction option to required (which is nothing but our sequence container in CFT) and child level transaction option to supported (all other tasks available under the sequence container).


2. Also, go to the view local services and search for Distributed Transaction Co-ordinator and restart the option and close it.

3. Nextly you need to come to your package and execute it where you can see any tasks is failed in the package, rest of the tasks will rollback.



Thanks & Best Regards,
Durga.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900