DENY Symmetric Key Permissions
DENY permissions on symmetric key
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
DENY permission [ ,...n ] ON SYMMETRIC KEY :: symmetric_key_name TO <database_principal> [ ,...n ] [ CASCADE ] [ AS <database_principal> ]
Work example
A principal must be blocked from one permission on a symmetric key.
Trace encrypted columns and callers that open the key before changing access.
Check your work The principal cannot use the key and authorized decryption still works.
Open Microsoft Learn for full syntax, permissions, and details for your version.