Skip to content

Latest commit

 

History

History
67 lines (59 loc) · 5.16 KB

File metadata and controls

67 lines (59 loc) · 5.16 KB
title sys.database_audit_specifications (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 04/05/2016
ms.prod sql
ms.prod_service database-engine
ms.reviewer
ms.technology system-objects
ms.topic language-reference
f1_keywords
database_audit_specifications_TSQL
sys.database_audit_specifications_TSQL
sys.database_audit_specifications
database_audit_specifications
dev_langs
TSQL
helpviewer_keywords
sys.database_audit_specifications catalog view
ms.assetid bf80e5c6-0588-4eb7-86ff-aa7c73461335
author stevestein
ms.author sstein

sys.database_audit_specifications (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]

Contains information about the database audit specifications in a [!INCLUDEssNoVersion] audit on a server instance. For more information, see SQL Server Audit (Database Engine).

Column name Data type Description
Name sysname Name of the auditing specification.
database_specification_id int ID of the database specification.
create_date datetime Date the audit specification was created.
modified_date datetime Date the audit specification was last modified.
is_state_enabled bit Audit specification state:

0 - DISABLED

1 -ENABLED
audit_GUID uniqueidentifer GUID for the audit that contains this specification. Used during enumeration of member database audit specifications during database attach/startup.

Remarks

If a database is in ready-only mode, the [!INCLUDEssNoVersion] Audit feature cannot add Database Audit Specifications.

Permissions

Principals with the ALTER ANY DATABASE AUDIT or VIEW DEFINITION permissions, the dbo role, and members of the db_owners fixed database role have access to this catalog view. In addition, the principal must not be denied VIEW DEFINITION permission.

[!INCLUDEssCatViewPerm]. For more information, see Metadata Visibility Configuration.

See Also

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)
DROP 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_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)
Create a Server Audit and Server Audit Specification