Export (0) Print
Expand All
Expand Minimize

DROP SERVER AUDIT SPECIFICATION (Transact-SQL)

Drops a server audit specification object using the SQL Server Audit feature. For more information, see Understanding SQL Server Audit.

Topic link icon Transact-SQL Syntax Conventions


DROP SERVER AUDIT SPECIFICATION audit_specification_name
[ ; ]

audit_specification_name

Name of an existing server audit specification object.

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.

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

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 Understanding SQL Server Audit.

Community Additions

ADD
Show:
© 2014 Microsoft