Bagikan melalui


ServiceMasterKey.Export Method

Saves the service master key to the specified system path location with the specified password.

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

Syntax

'Declaration
Public Sub Export ( _
    path As String, _
    password As String _
)
'Usage
Dim instance As ServiceMasterKey 
Dim path As String 
Dim password As String

instance.Export(path, password)
public void Export(
    string path,
    string password
)
public:
void Export(
    String^ path, 
    String^ password
)
member Export : 
        path:string * 
        password:string -> unit
public function Export(
    path : String, 
    password : String
)

Parameters

  • path
    Type: System.String
    A String value that specifies the system path location of the file to which to save the service master key.
  • password
    Type: System.String
    A String value that specifies the password with which to encrypt and decrypt the service master key.

Examples

Using Encryption

See Also

Reference

ServiceMasterKey Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Encryption Hierarchy

ALTER SERVICE MASTER KEY (Transact-SQL)