We recommend using Visual Studio 2017

DatabaseEncryptionKey Class

Creates a database encryption key.

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

public sealed class DatabaseEncryptionKey : SqlSmoObject, 
	ICreatable, IAlterable, IDroppable, IScriptable

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions