共用方式為


ProxyAccount.CredentialIdentity 屬性

Gets the credential identity.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property CredentialIdentity As String 
    Get
'用途
Dim instance As ProxyAccount 
Dim value As String 

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

屬性值

型別:System.String
A String value that specifies the credential identity.

備註

The proxy account credential is required to allow the proxy account access to the subsystems for Microsoft SQL Server authenticated logins.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

ProxyAccount 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_add_proxy (Transact-SQL)

sp_grant_proxy_to_subsystem (Transact-SQL)