Поделиться через


Метод ServerProxyAccount.SetAccount (String, SecureString)

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Sub SetAccount ( _
    windowsAccount As String, _
    password As SecureString _
)
'Применение
Dim instance As ServerProxyAccount 
Dim windowsAccount As String 
Dim password As SecureString

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

Параметры

Примеры

Планирование автоматических административных задач в агенте SQL Server

См. также

Справочник

ServerProxyAccount Класс

Перегрузка SetAccount

Пространство имен Microsoft.SqlServer.Management.Smo