SQL Flow Field Guide

DROP MASTER KEY

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

removes a master key

What changes

Input
catalog
Output or change
security catalog: master key

Syntax at a glance

DROP MASTER KEY

Work example

A database master key is considered for removal after dependent keys move.

Inventory certificates, symmetric keys, credentials, and encrypted data before seeking approval.

Check your work No database feature needs the master key and required backups remain available.

Open Microsoft Learn for full syntax, permissions, and details for your version.