ManagedInstance.AgentProxyAccount Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene l'account proxy SQL Server Agent utilizzato per eseguire processi pianificati nell'istanza di SQL Server.
public:
property System::String ^ AgentProxyAccount { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)]
public string AgentProxyAccount { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)>]
member this.AgentProxyAccount : string
Public ReadOnly Property AgentProxyAccount As String
Valore della proprietà
Valore String che specifica il nome dell'account proxy di SQL Server Agent.
- Attributi
Esempio
VC #
AgentProxyAccount agentProxyAccount;
agentProxyAccount = new AgentProxyAccount ();
System.Console.WriteLine(agentProxyAccount.DateCreated);
VB
Dim agentProxyAccount As AgentProxyAccount
agentProxyAccount = New AgentProxyAccount ()
System.Console.WriteLine(agentProxyAccount.DateCreated)
PowerShell
$agentProxyAccount = New-Object Microsoft.SqlServer.Management.Utility.AgentProxyAccount
Write-Host $agentProxyAccount.DateCreated
Commenti
L'account proxy SQL Server Agent può essere usato per eseguire controlli dei criteri pianificati sull'istanza di SQL Server.