Format Pager Addresses for Alerts

Applies to: SQL Server Azure 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 format pager addresses for 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 format pager addresses

  1. In Object Explorer, click the plus sign to expand the server that contains the alert that you want to send to a pager.

  2. Right-click SQL Server Agent and select Properties

  3. Under Select a page, select Alert System.

  4. In the To line and CC line boxes of the Address formatting for pager e-mails field, enter the pager address prefix or suffix. The operator's actual pager address is inserted when a notification is sent.

  5. In the Subject box, enter the subject line prefix or suffix.

  6. Select the Include body of e-mail in notification page check box to include the full e-mail message with the pager message (as opposed to the subject line only).

  7. When finished, click OK.