Notatka
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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
'Declaration
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
ReadOnly Property AgentServiceAccount As String
Get
'Usage
Dim instance As IServerSetupFacet
Dim value As String
value = instance.AgentServiceAccount
[DisplayNameKeyAttribute("JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")]
string AgentServiceAccount { get; }
[DisplayNameKeyAttribute(L"JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute(L"JobServer_ServiceAccountDesc")]
property String^ AgentServiceAccount {
String^ get ();
}
[<DisplayNameKeyAttribute("JobServer_ServiceAccountName")>]
[<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")>]
abstract AgentServiceAccount : string
function get AgentServiceAccount () : String
Property Value
Type: System.String
A String value that specifies the service account for the SQL Server Agent.