Udostępnij za pośrednictwem


Metoda ServiceMasterKey.Recover

Odzyskuje klucz głównego usługa, przypadek klucz głównego usługa został zmieniony zewnętrznych do SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Sub Recover ( _
    oldAccount As String, _
    oldPassword As String _
)
'Użycie
Dim instance As ServiceMasterKey
Dim oldAccount As String
Dim oldPassword As String

instance.Recover(oldAccount, oldPassword)
public void Recover(
    string oldAccount,
    string oldPassword
)
public:
void Recover(
    String^ oldAccount, 
    String^ oldPassword
)
member Recover : 
        oldAccount:string * 
        oldPassword:string -> unit 
public function Recover(
    oldAccount : String, 
    oldPassword : String
)

Parametry

  • oldAccount
    Typ: System.String
    A String wartość określająca stare konto, który został użyty do otwierania klucz głównego usługa.
  • oldPassword
    Typ: System.String
    A String wartość określająca skojarzone hasło dla konta, który został użyty do otwierania klucz głównego usługa.