Compartir a través de


JobServer.SqlServerRestart Property

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

Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Property SqlServerRestart As Boolean
public bool SqlServerRestart { get; set; }
public:
property bool SqlServerRestart {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_SqlServerRestart ()

/** @property */
public void set_SqlServerRestart (boolean value)
public function get SqlServerRestart () : boolean

public function set SqlServerRestart (value : boolean)

Valor de propiedad

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.

Notas

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplo

How to: Create a Job with Steps and a Schedule in Visual Basic .NET

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

JobServer Class
JobServer Members
Microsoft.SqlServer.Management.Smo.Agent Namespace

Otros recursos

Automatizar las tareas administrativas (Agente SQL Server)
Scheduling Automatic Administrative Tasks in SQL Server Agent
Procedimientos almacenados del Agente SQL Server (Transact-SQL)