title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | dev_langs | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sys.database_audit_specification_details (Transact-SQL) |
sys.database_audit_specification_details (Transact-SQL) |
sravanisaluru |
srsaluru |
03/23/2022 |
sql |
system-objects |
reference |
|
|
|
[!INCLUDE SQL Server]
Contains information about the database audit specifications in a [!INCLUDEssNoVersion] audit on a server instance for all databases. For more information, see SQL Server Audit (Database Engine). For a list of all audit_action_id's and their names, query sys.dm_audit_actions (Transact-SQL).
Column name | Data type | Description |
---|---|---|
database_specification_id | int | ID of the audit specification. |
audit_action_id | int | ID of the audit action. |
audit_action_name | Sysname | Name of audit action or audit action group |
Class | int | Identifies class of object which is being audited. |
class_ desc | Nvarchar(60) | Description of class of object which is being audited: - SCHEMA - TABLE |
major_id | int | Major ID of object being audited, such as a Table ID of a Table Audit action. |
minor_id | Int | Secondary ID of object that is being audited, interpreted according to class, such as the column ID of a Table Audit action. |
audited_principal_id | int | Principal that is being audited. |
audited_result | Nvarchar(60) | Audit action results: - SUCCESS AND FAILURE - SUCCESS - FAILURE |
is_group | Bit | Shows whether the object is a group: 0 - Not a group 1 - Group |
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.
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_specifications (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