Compartilhar via


Propriedade SqlServerRestart

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute> _
Public Property SqlServerRestart As Boolean
    Get
    Set
'Uso
Dim instance As JobServer
Dim value As Boolean

value = instance.SqlServerRestart

instance.SqlServerRestart = value
[SfcPropertyAttribute]
public bool SqlServerRestart { get; set; }
[SfcPropertyAttribute]
public:
property bool SqlServerRestart {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member SqlServerRestart : bool with get, set
function get SqlServerRestart () : boolean
function set SqlServerRestart (value : boolean)

Valor da propriedade

Tipo: 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.