IServerSetupFacet.AgentServiceAccount Property
Applies To: SQL Server 2016 Preview
Gets the service account for the SQL Server Agent service.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[DisplayNameKeyAttribute("JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")]
string AgentServiceAccount { get; }
[DisplayNameKeyAttribute("JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")]
property String^ AgentServiceAccount {
String^ get();
}
[<DisplayNameKeyAttribute("JobServer_ServiceAccountName")>]
[<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")>]
abstract AgentServiceAccount : string with get
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")>
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")>
ReadOnly Property AgentServiceAccount As String
Property Value
Type: System.String
A String value that specifies the service account for the SQL Server Agent.
Examples
Legacy Code Example
See Also
IServerSetupFacet Interface
Microsoft.SqlServer.Management.Smo Namespace
Return to top