JobStep 成員
The JobStep class represents a Microsoft SQL Server job step.
JobStep 型別公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
JobStep() () () () | Initializes a new instance of the JobStep class. | |
JobStep(Job, String) | Initializes a new instance of the JobStep class for the specified job and with the specified name. |
頂端
方法
頂端
屬性
名稱 | 描述 | |
---|---|---|
Command | Gets or sets the command execution string for the job step. | |
CommandExecutionSuccessCode | Gets or sets the process exit code from a command shell process executed as a job step. | |
DatabaseName | Gets or sets the name of the database to which the job step command execution is confined. | |
DatabaseUserName | Gets or sets the database user account that the job step assumes when executing the command string. | |
ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (繼承自 SqlSmoObject。) | |
ID | Gets or sets the ID value that uniquely identifies the job step. | |
IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (繼承自 SqlSmoObject。) | |
JobStepFlags | The JobStepFlags property is reserved for future use. | |
LastRunDate | Gets the date and time when the job step was last executed. | |
LastRunDuration | Gets the time, in seconds, the referenced job step took to run when it was last executed. | |
LastRunOutcome | Gets the outcome of the job step when it was last executed. | |
LastRunRetries | Gets the number of retries that were attempted when the job step was last executed. | |
Name | Gets or sets the name of the object. (繼承自 NamedSmoObject。) | |
ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (繼承自 SqlSmoObject。) | |
OnFailAction | Gets or sets the action to take when the job step finishes execution with failure. | |
OnFailStep | Gets or sets the job step that is executed after the referenced job step finishes execution with a completion status of failure. | |
OnSuccessAction | Gets or sets the action to take when the job step finishes execution with success. | |
OnSuccessStep | Gets or sets the job step that is executed after the referenced job step finishes execution with a completion status of success. | |
OSRunPriority | Gets or sets the execution thread scheduling for job steps executing operating system tasks. | |
OutputFileName | Gets or sets the name and path of the operating system file that records job step result message text. | |
Parent | Gets or sets the Job object that is the parent of the JobStep object. | |
Properties | Gets a collection of Property objects that represent the object properties. (繼承自 SqlSmoObject。) | |
ProxyName | Gets or sets the name of the Microsoft SQL Server Agent proxy account that is required by the job step. | |
RetryAttempts | Gets or sets the maximum number of times a job step is retried before it is returned with a completion status of failure. | |
RetryInterval | Gets or sets the number of minutes that Microsoft SQL Server Agent waits before trying to execute a job step that has previously failed. | |
ScalarResult | Gets the scalar result for the referenced object. (繼承自 SqlSmoObject。) | |
Server | Gets or sets the name of the server on which the job step runs. | |
State | Gets the state of the referenced object. (繼承自 SmoObjectBase。) | |
SubSystem | Gets or sets the Microsoft SQL Server Agent execution subsystem used to interpret job step command text. | |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (繼承自 SqlSmoObject。) | |
UserData | Gets or sets user-defined data associated with the referenced object. (繼承自 SmoObjectBase。) |
頂端
明確繼承實作
名稱 | 描述 | |
---|---|---|
IAlienObjectDiscover | (繼承自 SqlSmoObject。) | |
IAlienObjectGetParent | (繼承自 SqlSmoObject。) | |
IAlienObjectGetProperty | (繼承自 SqlSmoObject。) | |
ISfcPropertyProviderGetPropertySet | (繼承自 SqlSmoObject。) | |
IAlienObjectGetUrn | (繼承自 SqlSmoObject。) | |
IAlienObjectResolve | (繼承自 SqlSmoObject。) | |
IAlienObjectSetProperty | (繼承自 SqlSmoObject。) |
頂端