You are editing a SQL Server Integration Services (SSIS) package that contains three
Execute SQL tasks and no other tasks. The package and all three Execute SQL tasks have
their TransactionOption property set to Supported.
You need to ensure that if any of the Execute SQL tasks fail, all three tasks will roll back
their changes.
What should you do?
A.
Move the three Execute SQL tasks into a Sequence container.
B.
Move the three Execute SQL tasks into a Foreach Loop container.
C.
Change the TransactionOption property of all three Execute SQL tasks to Required.
D.
Change the TransactionOption property of the package to Required.
Explanation:
Reference:
http://msdn.microsoft.com/en-us/library/ms137749.aspx
http://msdn.microsoft.com/enus/library/microsoft.sqlserver.dts.runtime.dtstransactionoption.aspx
Right answer is ‘A’.
Put tasks in Sequence containe
Sorry! ‘D’ is right
D is the right answer.
I am going for D on this one.
D is correct if we put the three tasks in a sequence container it does not make any difference as the default TransactionOption is supported. But it may work if the Sequence container’s TransactionOption property is changed to Required which is same as D.