DENY Object Permissions
DENY permissions on object
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
DENY <permission> [ ,...n ] ON [ OBJECT :: ][ schema_name ]. object_name [ ( column [ ,...n ] ) ] TO <database_principal> [ ,...n ] [ CASCADE ] [ AS <database_principal> ]
Work example
A user must be blocked from one operation on a table, view, or routine.
Check direct and role grants, ownership chains, and the exact object before changing access.
Check your work The test user fails the named operation on this object and keeps approved access elsewhere.
Open Microsoft Learn for full syntax, permissions, and details for your version.