Share via


JobServer.SetMsxAccount Method (String)

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

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub SetMsxAccount ( _
    credentialName As String _
)
'Usage
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
)

Parameters

Remarks

This method was introduced in SQL Server 2005.

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobServer Class

SetMsxAccount Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_msx_set_account (Transact-SQL)