Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CompletionAction Enumeration

The CompletionAction enumeration is a list of constant values that specify the circumstances when a job completes after which another action is executed.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

public enum CompletionAction

Member nameDescription
AlwaysValue = 3. The action is always executed regardless of the success or failure of the job step.
NeverValue = 0. The action is never executed regardless of the success or failure of the job step.
OnFailureValue = 2. The action is only executed after the job step has completed with failure.
OnSuccessValue = 1. The action is only executed after the job step has completed with success.

The CompletionAction enumeration class is served by the EnumJobs the EnumTargetServers methods, and the EmailLevel, NetSendLevel, and PageLevel properties.

Community Additions

Show:
© 2015 Microsoft