title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DROP COLUMN MASTER KEY (Transact-SQL) |
DROP COLUMN MASTER KEY (Transact-SQL) |
jaszymas |
jaszymas |
10/15/2019 |
sql |
t-sql |
reference |
|
|
|
[!INCLUDE sqlserver2016-asdb-asdbmi]
Drops a column master key from a database. This is a metadata operation.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DROP COLUMN MASTER KEY key_name;
key_name
The name of the column master key.
The column master key can only be dropped if there are no column encryption key values encrypted with the column master key. To drop column encryption key values, use the DROP COLUMN ENCRYPTION KEY statement.
Requires ALTER ANY COLUMN MASTER KEY permission on the database.
The following example drops a column master key called MyCMK
.
DROP COLUMN MASTER KEY MyCMK;
GO
CREATE COLUMN MASTER KEY (Transact-SQL)
CREATE COLUMN ENCRYPTION KEY (Transact-SQL)
DROP COLUMN ENCRYPTION KEY (Transact-SQL)
sys.column_master_keys (Transact-SQL)
Always Encrypted
Always Encrypted with secure enclaves
Overview of Key Management for Always Encrypted
Manage keys for Always Encrypted with secure enclaves