SqlServerRestart Property

JobServer.SqlServerRestart Property

 

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

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

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Matrix)]
public bool SqlServerRestart { get; set; }

Property Value

Type: System.Boolean

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

If True, SQL Server Service is restarted.

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

Return to top
Show:
© 2016 Microsoft