5. EXEC msdb.dbo.sp_add_alert @name = N'Severity 23 Error',
@message_id = 0, @severity = 23, @include_event_description_in = 0;
EXEC msdb.dbo.sp_add_notification @alert_name = N'Severity 23 Error',
@operator_name = N'SQL_Alerts', @notification_method = 1;
EXEC msdb.dbo.sp_add_alert @name = N'Severity 24 Error',
@message_id = 0, @severity = 24, @include_event_description_in = 0;
EXEC msdb.dbo.sp_add_notification @alert_name = N'Severity 24 Error',
@operator_name = N'SQL_Alerts', @notification_method = 1;
EXEC msdb.dbo.sp_add_alert @name = N'Severity 25 Error',
@message_id = 0, @severity = 25, @include_event_description_in = 0;
EXEC msdb.dbo.sp_add_notification @alert_name = N'Severity 25 Error',
@operator_name = N'SQL_Alerts', @notification_method = 1;
EXEC msdb.dbo.sp_add_alert @name = N'Error 825',
@message_id = 825, @severity = 0, @include_event_description_in = 0;
EXEC msdb.dbo.sp_add_notification @alert_name = N'Error 825',
@operator_name = N'SQL_Alerts', @notification_method = 1;
If you have followed along, you would have database mail configured, created an Operator to
email you or a distribution group about potential errors, and SQL Server Agent Alerts
configured for Severity 19 – 25 and error 825.
This is great. Any time one of those alerts are triggered an email will be sent to your team. In
addition to event alerts, alerts can be configured for a performance condition, To find the SQL
Server performance condition alerts, in the new alert dialog box, click the drop down box for
Type. There you will see SQL Server performance condition alert listed. Once you chose that