Udostępnij za pośrednictwem


DROP SERVER AUDIT SPECIFICATION (Transact-SQL)

Drops a server audit specification object using the SQL Server Audit feature. For more information, see SQL Server Audit (Database Engine).

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

DROP SERVER AUDIT SPECIFICATION audit_specification_name
[ ; ]

Arguments

  • audit_specification_name
    Name of an existing server audit specification object.

Uwagi

A DROP SERVER AUDIT SPECIFICATION removes the metadata for the audit specification, but not the audit data collected before the DROP command was issued. You must set the state of a server audit specification to OFF using ALTER SERVER AUDIT SPECIFICATION before it can be dropped.

Permissions

Users with the ALTER ANY SERVER AUDIT permission can drop server audit specifications.

Examples

The following example drops a server audit specification called HIPAA_Audit_Specification.

DROP SERVER AUDIT SPECIFICATION HIPAA_Audit_Specification;
GO

For a full example about how to create an audit, see SQL Server Audit (Database Engine).

Zobacz także

Odwołanie

CREATE SERVER AUDIT (Transact-SQL)

ALTER SERVER AUDIT (Transact-SQL)

DROP SERVER AUDIT (Transact-SQL)

CREATE SERVER AUDIT SPECIFICATION (Transact-SQL)

ALTER SERVER AUDIT SPECIFICATION (Transact-SQL)

CREATE DATABASE AUDIT SPECIFICATION (Transact-SQL)

ALTER DATABASE AUDIT SPECIFICATION (Transact-SQL)

DROP DATABASE AUDIT SPECIFICATION (Transact-SQL)

ALTER AUTHORIZATION (Transact-SQL)

sys.fn_get_audit_file (Transact-SQL)

sys.server_audits (Transact-SQL)

sys.server_file_audits (Transact-SQL)

sys.server_audit_specifications (Transact-SQL)

sys.server_audit_specification_details (Transact-SQL)

sys.database_audit_specifications (Transact-SQL)

sys.database_audit_specification_details (Transact-SQL)

sys.dm_server_audit_status (Transact-SQL)

sys.dm_audit_actions (Transact-SQL)

sys.dm_audit_class_type_map (Transact-SQL)

Koncepcje

Create a Server Audit and Server Audit Specification

Historia zmian

Updated content

Corrected the Permissions section.