MasterKey.Create Method (String, String, String)
Creates a master key from the specified file and that has the specified encryption and decryption passwords.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public void Create( string path, string decryptionPassword, string encryptionPassword )
A String value that specifies the system path location of the file from which to load the master key.
A String value that specifies the password with which to decrypt the master key.