Compartir a través de


ServiceMasterKey.ChangeAccount Método

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

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

Sintaxis

'Declaración
Public Sub ChangeAccount ( _
    newAccount As String, _
    newPassword As String _
)
'Uso
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
)

Parámetros

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

Ejemplos

Utilizar el cifrado

Vea también

Referencia

ServiceMasterKey Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Jerarquía de cifrado

ALTER SERVICE MASTER KEY (Transact-SQL)