다음을 통해 공유


SqlServerRestart 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property SqlServerRestart As Boolean
    Get
    Set
‘사용 방법
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)

속성 값

형식: 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.