共用方式為


ProxyAccount.CredentialID 屬性

Gets the ID value that uniquely identifies the proxy agent credential.

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

語法

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

value = instance.CredentialID
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int CredentialID { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int CredentialID {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member CredentialID : int
function get CredentialID () : int

屬性值

型別:System.Int32
An Int32 value that specifies the ID value that uniquely identifies the proxy account credential.

備註

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)