标签:
A SQL Server Integration Services package has a set of properties with similar names that let you:
Their similar names make it easy to confuse these properties. To make matters worse, their descriptions were mixed up in at least one place in Books Online (now fixed). I‘ve just checked BOL one more time, so let‘s clear up the confusion before I forget which property is which.
These properties apply not only to the package itself, but also to other objects in a package that inherit the DtsContainer interface, including both containers and the TaskHost that wraps tasks.
You can force the ExecutionResult of a task, container, or package by selecting a value for the ForceExecutionResult property. The available values are the members of the DTSForcedExecResult enumeration:
Ironically, it‘s probably more useful to fake failure than success. As BOL explains: "You can use the ForceExecutionResult property on a task or container to test the use of checkpoints in a package. By setting ForceExecutionResult of the task or container to Failure, you can imitate real-time failure. When you rerun the package, failed tasks and containers will be rerun."
You can also return some user-defined data from a task, container, or package:
标签:
原文地址:http://www.cnblogs.com/ljhdo/p/4805490.html