Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SymmetricKey.Create Method (SymmetricKeyEncryption, SymmetricKeyEncryptionAlgorithm, SecureString, String)


Creates a symmetric key on the database with the specified encryption type and method.

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

public void Create(
	SymmetricKeyEncryption keyEncryption,
	SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm,
	SecureString passPhrase,
	string identityPhrase


Type: Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryption

A SymmetricKeyEncryption object value that specifies the encryption type.

Type: Microsoft.SqlServer.Management.Smo.SymmetricKeyEncryptionAlgorithm

A SymmetricKeyEncryptionAlgorithm value that specifies the encryption method.

Type: System.Security.SecureString

A SecureString value that specifies the pass phrase from which the symmetric key can be derived.

Type: System.String

A String value that specifies the identity phrase used to tag data that is encrypted with the key. Either passPhrase or identityPhrase can be null, but at least one needs to be set.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft