title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | monikerRange | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DROP SECURITY POLICY (Transact-SQL) |
DROP SECURITY POLICY a security policy for use with row-level security. |
VanMSFT |
vanto |
10/04/2023 |
sql |
t-sql |
reference |
|
|
|
=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current||=fabric |
[!INCLUDE sqlserver2016-asdb-asdbmi-fabricse-fabricdw]
Deletes a security policy.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
DROP SECURITY POLICY [ IF EXISTS ] [schema_name. ] security_policy_name
[;]
Applies to: [!INCLUDE ssNoVersion] ( [!INCLUDE sssql16-md] through current version).
Conditionally drops the security policy only if it already exists.
Is the name of the schema to which the security policy belongs.
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.
Requires the ALTER ANY SECURITY POLICY permission and ALTER permission on the schema.
DROP SECURITY POLICY secPolicy;