MasterKey.Regenerate Method (String)

Regenerates the database master key by using the specified new password.

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

Syntax

'Declaration
Public Sub Regenerate ( _
    password As String _
)
'Usage
Dim instance As MasterKey 
Dim password As String

instance.Regenerate(password)
public void Regenerate(
    string password
)
public:
void Regenerate(
    String^ password
)
member Regenerate : 
        password:string -> unit
public function Regenerate(
    password : String
)

Parameters

  • password
    Type: System.String
    A String value that specifies the password with which to encrypt and decrypt the master key.

Examples

Calling Methods

See Also

Reference

MasterKey Class

Regenerate Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

CREATE MASTER KEY (Transact-SQL)