Propriété JobServer.ServiceAccount

Gets the account under which the SQL Server Agent service runs

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ServiceAccount As String 
    Get
'Utilisation
Dim instance As JobServer 
Dim value As String 

value = instance.ServiceAccount
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string ServiceAccount { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ ServiceAccount {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ServiceAccount : string
function get ServiceAccount () : String

Valeur de propriété

Type : System.String
A String value that specifies the account under which the SQL Server Agent service runs.

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)