SQL Flow Field Guide

ALTER COLUMN ENCRYPTION KEY

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

changes a column encryption key

What changes

Input
catalog
Output or change
security catalog: column encryption key

Syntax at a glance

ALTER COLUMN ENCRYPTION KEY key_name [ ADD | DROP ] VALUE ( COLUMN_MASTER_KEY = column_master_key_name [, ALGORITHM = 'algorithm_name' , ENCRYPTED_VALUE = varbinary_literal ] ) [;]

Work example

Always Encrypted key metadata needs an approved key-store change.

Coordinate the metadata change with client drivers and the external master-key rotation plan.

Check your work A test client can read existing encrypted values after the metadata update.

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