ServiceMasterKey.Regenerate Method

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
'Usage
Dim instance As ServiceMasterKey

instance.Regenerate()
public void Regenerate()
public:
void Regenerate()
member Regenerate : unit -> unit
public function Regenerate()

Examples

Using Encryption

See Also

Reference

ServiceMasterKey Class

Regenerate Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

ALTER SERVICE MASTER KEY (Transact-SQL)