This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumJobNotifications method returns a QueryResults object that enumerates notifications made by Microsoft SQL Server Agent on completion of job execution.
The EnumJobNotifications method returns a QueryResults object that contains one result set defined by these columns.
System-generated identifier for a SQL Server Agent job.
Job completion status causing notification by e-mail. Interpret as described in Remarks.
Job completion status causing notification by network pop-up message. Interpret as described in Remarks.
Job completion status causing notification by pager. Interpret as described in Remarks.
Interpret values returned in value returned in the notify_level_email, notify_level_netsend, and notify_level_page columns using these values.
Operator not configured for notification by notification method.
Operator receives notification of a successful job execution.
Operator receives notification of an unsuccessful execution attempt.
Operator receives notification regardless of execution outcome.
The result set returned enumerates all jobs for which an operator will receive notification on execution attempt completion. At least one of the columns notify_level_email, notify_level_netsend, or notify_level_page will contain a non-zero value for all rows in the result set.