Метод ServiceMasterKey.ChangeAccount

Encrypts the service master key with the new, specified credentials.

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

Синтаксис

'Декларация
Public Sub ChangeAccount ( _
    newAccount As String, _
    newPassword As String _
)
'Применение
Dim instance As ServiceMasterKey 
Dim newAccount As String 
Dim newPassword As String

instance.ChangeAccount(newAccount, newPassword)
public void ChangeAccount(
    string newAccount,
    string newPassword
)
public:
void ChangeAccount(
    String^ newAccount, 
    String^ newPassword
)
member ChangeAccount : 
        newAccount:string * 
        newPassword:string -> unit
public function ChangeAccount(
    newAccount : String, 
    newPassword : String
)

Параметры

  • newAccount
    Тип: System.String
    A String value that specifies the account with which to open the service master key.
  • newPassword
    Тип: System.String
    A String value that specifies the associated password for the account which is used to open the service master key.

Примеры

Использование шифрования

См. также

Справочник

ServiceMasterKey Класс

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

Другие ресурсы

Иерархия средств шифрования

ALTER SERVICE MASTER KEY (Transact-SQL)