AlertSystem.PagerCCTemplate Property

 

Applies To: SQL Server 2016 Preview

Gets or sets the template text sent in the e-mail Cc: line in the e-mail sent by SQL Server Agent for pager notifications.

Namespace:   Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public string PagerCCTemplate { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property String^ PagerCCTemplate {
    String^ get();
    void set(String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member PagerCCTemplate : string with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public Property PagerCCTemplate As String

Property Value

Type: System.String

A String value that specifies the text sent in the e-mail Cc: line sent in a pager message.

Remarks

In the template, SQL Server Agent replaces the character string <#A#> with the pager address of a notified operator. Set the operator pager address using the PagerAddress property.

Examples

Legacy Code Example

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

AlertSystem Class
Microsoft.SqlServer.Management.Smo.Agent Namespace
Automated Administration Tasks (SQL Server Agent)
sp_add_alert (Transact-SQL)

Return to top