Job.OperatorToPage Job.OperatorToPage Job.OperatorToPage Property

Definition

Gets or sets the operator that receives a pager notification when the job finishes execution.

public:
 property System::String ^ OperatorToPage { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Expensive | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public string OperatorToPage { get; set; }
Public Property OperatorToPage As String
Property Value

A String value that specifies the operator that receives a pager notification when the job finishes.

Examples

The following code example creates a job and specifies an operator that receives a pager notification when the job is completed.

C#

Server srv = new Server("(local)");  
Job jb = new Job(srv.JobServer, "Test Job");  
jb.Create();  
jb.OperatorToPage = "OperatorName";  

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")  
$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job($srv.JobServer, "Test Job")  
$jb.Create()  
$jb.OperatorToPage = "OperatorName"  

Applies to