Share via


DtsContainer.ForceExecutionResult Property

Definition

Gets or sets a DTSForcedExecResult enumeration value that specifies the forced execution result of the container.

public:
 property Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult ForceExecutionResult { Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult get(); void set(Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")]
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ForceExecutionResultDesc")]
public Microsoft.SqlServer.Dts.Runtime.DTSForcedExecResult ForceExecutionResult { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")>]
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ForceExecutionResultDesc")>]
member this.ForceExecutionResult : Microsoft.SqlServer.Dts.Runtime.DTSForcedExecResult with get, set
Public Property ForceExecutionResult As DTSForcedExecResult

Property Value

A DTSForcedExecResult enumeration that reports the forced success or failure of the package or container. The default value of this property is None, which indicates that the container does not force its execution outcome.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 task and containers will be rerun. For more information, see Restart Packages by Using Checkpoints.

Attributes

Applies to