Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 4.9 KB

sys-database-audit-specifications-transact-sql.md

File metadata and controls

67 lines (57 loc) · 4.9 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.database_audit_specifications (Transact-SQL)
sys.database_audit_specifications (Transact-SQL)
sravanisaluru
srsaluru
rwestMSFT
04/04/2022
sql
system-objects
reference
database_audit_specifications_TSQL
sys.database_audit_specifications_TSQL
sys.database_audit_specifications
database_audit_specifications
sys.database_audit_specifications catalog view
TSQL

sys.database_audit_specifications (Transact-SQL)

[!INCLUDE SQL Server]

This article 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.
modify_date datetime Date the audit specification was last modified.
audit_guid uniqueidentifier GUID for the audit that contains this specification. Used during enumeration of member database audit specifications during database attach/startup.
is_state_enabled bit Audit specification state:

0 - DISABLED

1 - ENABLED

Remarks

If a database is in ready-only mode, the [!INCLUDEssNoVersion] Audit feature can't 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