View Information About an Alert

Applies to: yesSQL Server (all supported versions) YesAzure SQL Managed Instance

Important

On Azure SQL Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Managed Instance T-SQL differences from SQL Server for details.

This topic describes how to view information about Microsoft SQL Server Agent alerts in SQL Server by using SQL Server Management Studio or Transact-SQL.

Before You Begin

Security

Permissions

By default, members of the sysadmin fixed server role can view information about an alert. Other users must be granted the SQLAgentOperatorRole fixed database role in the msdb database.

Using SQL Server Management Studio

To view information about an alert

  1. In Object Explorer, click the plus sign to expand the server where you want to view information about an alert.

  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 that has the information you want to view and select Properties.

    For more information on the available options contained in the alert_namealert properties dialog box, see:

  5. When finished, click OK.

Using Transact-SQL

To view information about 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.

    -- reports information about the Demo: Sev. 25 Errors alert  
    -- This example assumes that the 'Demo: Sev. 25 Errors' alert exists.  
    USE msdb ;  
    GO  
    
    EXEC sp_help_alert @alert_name = 'Demo: Sev. 25 Errors'  
    GO  
    

For more information, see sp_help_alert (Transact-SQL).