SQL Flow Field Guide

DROP SECURITY POLICY

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

removes a security policy: FILTER predicates silently filter reads; BLOCK predicates reject writes

What changes

Input
predicate function (inline TVF) and target tables
Output or change
row-level security policy

Syntax at a glance

DROP SECURITY POLICY [ IF EXISTS ] [schema_name. ] security_policy_name [;]

Work example

A row-level security policy is retired after an approved access design replaces it.

Review all affected tables, principals, views, and application filters with the security owner.

Check your work The replacement still blocks unauthorized rows before the old policy is removed.

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