Disable or Reactivate an Alert
This topic describes how to disable or reactivate a Microsoft SQL Server Agent alert in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL.
In This Topic
Before you begin:
Security
To disable or reactivate an alert, using:
SQL Server Management Studio
Transact-SQL
Before You Begin
Security
Permissions
By default, members of the sysadmin fixed server role can edit information in an alert. Other users must be granted the SQLAgentOperatorRole fixed database role in the msdb database.
[Top]
Using SQL Server Management Studio
To disable or reactivate an alert
In Object Explorer, click the plus sign to expand server that contains the alert you wish to disable or reactivate.
Click the plus sign to expand SQL Server Agent.
Click the plus sign to expand the Alerts folder.
Right-click the alert you wish to enable and select Enable To disable an alert, right-click the alert you want to disable and select Disable.
The Disable Alert or Enable Alert dialog box displays showing the status of the process. When finished, click Close.
[Top]
Using Transact-SQL
To disable or reactivate an alert
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
-- changes the enabled setting of Test Alert to 0 USE msdb ; GO EXEC dbo.sp_update_alert @name = N'Test Alert', @enabled = 0 ; GO
For more information, see sp_update_alert (Transact-SQL).
[Top]