Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 2.33 KB

File metadata and controls

63 lines (49 loc) · 2.33 KB
title DROP SECURITY POLICY (Transact-SQL)
description DROP SECURITY POLICY (Transact-SQL)
author VanMSFT
ms.author vanto
ms.date 05/11/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
f1_keywords
DROP_SECURITY_POLICY_TSQL
DROP SECURITY POLICY
DROP SECURITY
DROP_SECURITY_TSQL
helpviewer_keywords
DROP SECURITY POLICY statement
dev_langs
TSQL

DROP SECURITY POLICY (Transact-SQL)

[!INCLUDE sqlserver2016-asdb-asdbmi]

Deletes a security policy.

Topic link icon Transact-SQL Syntax Conventions

Syntax

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

Arguments

IF EXISTS
Applies to: [!INCLUDEssNoVersion] ( [!INCLUDEsssql16-md] through current version).

Conditionally drops the security policy only if it already exists.

schema_name
Is the name of the schema to which the security policy belongs.

security_policy_name
The name of the security policy. Security policy names must comply with the rules for identifiers and must be unique within the database and to its schema.

Remarks

Permissions

Requires the ALTER ANY SECURITY POLICY permission and ALTER permission on the schema.

Example

DROP SECURITY POLICY secPolicy;  

See Also

Row-Level Security
CREATE SECURITY POLICY (Transact-SQL)
ALTER SECURITY POLICY (Transact-SQL)
sys.security_policies (Transact-SQL)
sys.security_predicates (Transact-SQL)