Bagikan melalui


JobStep.OSRunPriority Property

Gets or sets the execution thread scheduling for job steps executing operating system tasks.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property OSRunPriority As OSRunPriority 
    Get 
    Set
'Usage
Dim instance As JobStep 
Dim value As OSRunPriority 

value = instance.OSRunPriority

instance.OSRunPriority = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public OSRunPriority OSRunPriority { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property OSRunPriority OSRunPriority {
    OSRunPriority get ();
    void set (OSRunPriority value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member OSRunPriority : OSRunPriority with get, set
function get OSRunPriority () : OSRunPriority 
function set OSRunPriority (value : OSRunPriority)

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.OSRunPriority
An OSRunPriority value that specifies the priority given to job steps executing operating system tasks.

Remarks

Set the OSRunPriority property to modify execution thread scheduling for job steps executing operating system commands. The property specifies a thread priority relative to that granted to an instance of Microsoft SQL Server.

Caution   Setting operating system thread priority can have adverse effects on other processes running on the server. Care should be taken when specifying priorities greater than normal.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobStep Class

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_jobstep (Transact-SQL)