Skip to content

Latest commit

 

History

History
65 lines (58 loc) · 5.59 KB

File metadata and controls

65 lines (58 loc) · 5.59 KB
title sys.dm_audit_actions (Transact-SQL)
description sys.dm_audit_actions (Transact-SQL)
author sravanisaluru
ms.author srsaluru
ms.date 03/23/2022
ms.prod sql
ms.technology system-objects
ms.topic reference
f1_keywords
sys.dm_audit_actions_TSQL
sys.dm_audit_actions
dm_audit_actions_TSQL
dm_audit_actions
helpviewer_keywords
sys.dm_audit_actions dynamic management view
dev_langs
TSQL
ms.assetid b987c2b9-998a-4a5f-a82d-280dc6963cbe
monikerRange =azuresqldb-current||>=sql-server-2016||=azuresqldb-mi-current

sys.dm_audit_actions (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi]

Returns a row for every audit action that can be reported in the audit log and every audit action group that can be configured as part of [!INCLUDEssNoVersion] Audit. For more information about [!INCLUDEssNoVersion] Audit, see SQL Server Audit (Database Engine).

Column name Data type Description
action_id varchar(4) ID of the audit action. Related to the action_id value written to each audit record. Is nullable. NULL for audit groups.
action_in_log bit Indicates whether an action can be written to an audit log. Values are as follows:

1 = Yes

0 = No
name sysname Name of the audit action or action group. Is not nullable.
class_desc nvarchar(120) The name of the class of the object that the audit action applies to. Can be any one of the Server, Database, or Schema scope objects, but does not include Schema objects. Is not nullable.
parent_class_desc nvarchar(120) Name of the parent class for the object described by class_desc. Is NULL if the class_desc is Server.
covering_parent_action_name nvarchar(120) Name of the audit action or audit group that contains the audit action described in this row. This is used to create a hierarchy of actions and covering actions. Is nullable.
configuration_level nvarchar(10) Indicates that the action or action group specified in this row is configurable at the Group or Action level. Is NULL if the action is not configurable.
containing_group_name nvarchar(120) The name of the audit group that contains the specified action. Is NULL if the value in name is a group.

Permissions

This view is visible to the public.

[!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_specifications (Transact-SQL)
sys.database_audit_specification_details (Transact-SQL)
sys.dm_server_audit_status (Transact-SQL)
sys.dm_audit_class_type_map (Transact-SQL)
Create a Server Audit and Server Audit Specification