SQL Flow Field Guide

DENY Type Permissions

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

DENY permissions on type

What changes

Input
principal and securable names
Output or change
permission metadata

Syntax at a glance

DENY permission [ ,...n ] ON TYPE :: [ schema_name . ] type_name TO <database_principal> [ ,...n ] [ CASCADE ] [ AS <database_principal> ]

Work example

A user must be blocked from using a database type in a named scope.

Find routines and table definitions that depend on the type before restricting access.

Check your work The user cannot use the type and approved callers retain their required permission.

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