Compartir a través de


ServerProxyAccount.SetAccount Método (String, String)

Sets the account name and password for the proxy account on the instance of SQL Server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub SetAccount ( _
    windowsAccount As String, _
    password As String _
)
'Uso
Dim instance As ServerProxyAccount 
Dim windowsAccount As String 
Dim password As String

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

Parámetros

Ejemplos

Programar tareas administrativas automáticas en el Agente SQL Server

Vea también

Referencia

ServerProxyAccount Clase

Sobrecarga de SetAccount

Espacio de nombres Microsoft.SqlServer.Management.Smo