Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Edit an Alert

Edit an Alert

 

This topic describes how to edit a Microsoft SQL Server Agent alert in SQL Server 2016 by using SQL Server Management Studio or Transact-SQL.

In This Topic

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.

Arrow icon used with Back to Top link

To edit an alert

  1. In Object Explorer, click the plus sign to expand the server containing the alert you want to edit.

  2. Click the plus sign to expand SQL Server Agent.

  3. Click the plus sign to expand the Alerts folder.

  4. Right-click the alert you want to edit and select Properties.

  5. Update the alert properties on the General, Response, and Options pages.

  6. When finished, click OK.

Arrow icon used with Back to Top link

To edit an alert

  1. In Object Explorer, connect to an instance of Database Engine.

  2. On the Standard bar, click New Query.

  3. 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).

Arrow icon used with Back to Top link

Community Additions

ADD
Show:
© 2015 Microsoft