Alert.JobID Property
Applies To: SQL Server 2016 Preview
Gets or sets the ID value of the SQL Server Agent job that is run in response to the alert being raised.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public Guid JobID { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property Guid JobID {
Guid get();
void set(Guid value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member JobID : Guid with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public Property JobID As Guid
Property Value
Type: System.Guid
A Guid system object value that specifies the ID value for the job that runs in response to the raised alert.
Examples
Legacy Code Example
Scheduling Automatic Administrative Tasks in SQL Server Agent
See Also
Alert Class
Microsoft.SqlServer.Management.Smo.Agent Namespace
Automated Administration Tasks (SQL Server Agent)
sp_add_alert (Transact-SQL)
Return to top