مشاركة عبر


ServerProxyAccount.SetAccount Method (String, String)

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

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

Syntax

'Declaration
Public Sub SetAccount ( _
    windowsAccount As String, _
    password As String _
)
'Usage
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
)

Parameters

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

ServerProxyAccount Class

SetAccount Overload

Microsoft.SqlServer.Management.Smo Namespace