Propriété JobServer.SqlAgentAutoStart

Gets or sets the Boolean property value that specifies whether SQL Server Agent is automatically started.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property SqlAgentAutoStart As Boolean 
    Get 
    Set
'Utilisation
Dim instance As JobServer 
Dim value As Boolean 

value = instance.SqlAgentAutoStart

instance.SqlAgentAutoStart = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool SqlAgentAutoStart { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool SqlAgentAutoStart {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member SqlAgentAutoStart : bool with get, set
function get SqlAgentAutoStart () : boolean 
function set SqlAgentAutoStart (value : boolean)

Valeur de propriété

Type : System.Boolean
A Boolean value that specifies whether SQL Server Agent is automatically started.If True, SQL Server Agent is automatically started.If False, (default), SQL Server Agent is not automatically restarted.

Exemples

Planification des tâches administratives automatiques dans l'Agent SQL Server

Voir aussi

Référence

JobServer Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Agent

Autres ressources

Tâches d'administration automatisée (Agent SQL Server)

Procédures stockées de l'Agent SQL Server (Transact-SQL)