This topic describes how to format pager addresses for Microsoft SQL Server Agent alerts in SQL Server 2017 by using SQL Server Management Studio or Transact-SQL.
In This Topic
Before You Begin
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
In Object Explorer, click the plus sign to expand the server that contains the alert that you want to send to a pager.
Right-click SQL Server Agent and select Properties
Under Select a page, select Alert System.
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.
In the Subject box, enter the subject line prefix or suffix.
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).
When finished, click OK.