共用方式為


JobServer.SetMsxAccount 方法 (String)

Sets the name of the credentials used to log in to the master server in multiserver administration.

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

語法

'宣告
Public Sub SetMsxAccount ( _
    credentialName As String _
)
'用途
Dim instance As JobServer 
Dim credentialName As String

instance.SetMsxAccount(credentialName)
public void SetMsxAccount(
    string credentialName
)
public:
void SetMsxAccount(
    String^ credentialName
)
member SetMsxAccount : 
        credentialName:string -> unit
public function SetMsxAccount(
    credentialName : String
)

參數

備註

此方法是在 SQL Server 2005 中導入。

範例

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

請參閱

參考

JobServer 類別

SetMsxAccount 多載

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

其他資源

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

sp_msx_set_account (Transact-SQL)