Compartilhar via


Método JobServer.SetMsxAccount (String, 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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub SetMsxAccount ( _
    account As String, _
    password As String _
)
'Uso
Dim instance As JobServer 
Dim account As String 
Dim password As String

instance.SetMsxAccount(account, password)
public void SetMsxAccount(
    string account,
    string password
)
public:
void SetMsxAccount(
    String^ account, 
    String^ password
)
member SetMsxAccount : 
        account:string * 
        password:string -> unit
public function SetMsxAccount(
    account : String, 
    password : String
)

Parâmetros

  • account
    Tipo: System.String
    A String value that specifies the SQL Server Authentication login name.
  • password
    Tipo: System.String
    A String value that specifies the SQL Server Authentication password.

Comentários

This method is no longer supported.

Exemplos

Agendando tarefas administrativas automáticas no SQL Server Agent

Consulte também

Referência

JobServer Classe

Sobrecarregado SetMsxAccount

Namespace Microsoft.SqlServer.Management.Smo.Agent

Outros recursos

Tarefas de administração automatizadas (SQL Server Agent)

sp_msx_set_account (Transact-SQL)