How to make a SSIS transaction in my case?

徘徊边缘 提交于 2019-12-25 02:43:00

问题


I am using SSIS 2008.

Let a person be defined by PersonID, a number. In my SSIS package, for each person, I first load some info into Table1 (with execute sql task) and then some info into Table2 (with execute sql task). I want this entire process to be considered as a transaction. That is, the transaction is complete only when information for A person is loaded both into Table1 and Table2. If we could not load info into Table2, then info already loaded in Table1 should not be committed.

How do I do this ?

Thanks.


回答1:


Place both of your loads into a sequence container set transaction option to required in the properties tab. Done. Included is an article in case you need additional details.



来源:https://stackoverflow.com/questions/19867490/how-to-make-a-ssis-transaction-in-my-case

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!