JobServer.SqlAgentRestart Property

 

Gets or sets the Boolean property value that specifies whether SQL Server Agent is monitored and restarted if it stops.

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

[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public bool SqlAgentRestart { get; set; }

Property Value

Type: System.Boolean

A Boolean value that specifies whether SQL Server Agent is monitored and restarted if it stops.

If True, SQL Server Agent is restarted.

If False (default), SQL Server Agent is not restarted.

Return to top
Show: