You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Audit. For more information about [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Audit, see [SQL Server Audit (Database Engine)](../../relational-databases/security/auditing/sql-server-audit-database-engine.md).
|**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.|
29
-
|**action_in_log**|**bit**|Indicates whether an action can be written to an audit log. Values are as follows:<br /><br /> 1 = Yes<br /><br /> 0 = No|
30
-
|**name**|**sysname**|Name of the audit action or action group. Isn't nullable.|
31
-
|**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 doesn't include Schema objects. Isn't nullable.|
32
-
|**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.|
33
-
|**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.|
34
-
|**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 isn't configurable.|
35
-
|**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.|
36
-
37
-
## Permissions
26
+
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 [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Audit. For more information about [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Audit, see [SQL Server Audit (Database Engine)](../security/auditing/sql-server-audit-database-engine.md).
27
+
28
+
| Column name | Data type | Nullable | Description |
29
+
| --- | --- | --- | --- |
30
+
|`action_id`|**varchar(4)**| Yes | ID of the audit action. Related to the `action_id` value written to each audit record. Can be `NULL` for audit groups. |
31
+
|`name`|**nvarchar(128)**| No | Name of the audit action or action group. |
32
+
|`class_desc`|**nvarchar(35)**| No | 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 doesn't include Schema objects. |
|`parent_class_desc`|**nvarchar(35)**| Yes | Name of the parent class for the object described by `class_desc`. Can be `NULL` if the `class_desc` is `Server`. |
35
+
|`covering_parent_action_name`|**nvarchar(128)**| Yes | Name of the audit action or audit group that contains the audit action described in this row. This value is used to create a hierarchy of actions and covering actions. |
36
+
|`configuration_level`|**nvarchar(128)**| Yes | Indicates that the action or action group specified in this row is configurable at the Group or Action level. Can be `NULL` if the action isn't configurable. |
37
+
|`containing_group_name`|**nvarchar(120)**| Yes | The name of the audit group that contains the specified action. Can be `NULL` if the value in `name` is a group. |
38
+
|`action_in_log`|**bit**| No | Indicates whether an action can be written to an audit log. Possible values:<br /><br />`1` = Yes<br />`0` = No |
39
+
40
+
## Permissions
41
+
38
42
This view is visible to the public.
39
-
40
-
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
41
-
42
-
## See also
43
-
44
-
-[CREATE SERVER AUDIT (Transact-SQL)](../../t-sql/statements/create-server-audit-transact-sql.md)
45
-
-[ALTER SERVER AUDIT (Transact-SQL)](../../t-sql/statements/alter-server-audit-transact-sql.md)
46
-
-[DROP SERVER AUDIT (Transact-SQL)](../../t-sql/statements/drop-server-audit-transact-sql.md)
47
-
-[CREATE SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/create-server-audit-specification-transact-sql.md)
48
-
-[ALTER SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/alter-server-audit-specification-transact-sql.md)
49
-
-[DROP SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/drop-server-audit-specification-transact-sql.md)
-[Create a Server Audit and Server Audit Specification](../../relational-databases/security/auditing/create-a-server-audit-and-server-audit-specification.md)
43
+
44
+
[!INCLUDE [ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata visibility configuration](../security/metadata-visibility-configuration.md).
45
+
46
+
## Related tasks
47
+
48
+
-[CREATE SERVER AUDIT (Transact-SQL)](../../t-sql/statements/create-server-audit-transact-sql.md)
49
+
-[ALTER SERVER AUDIT (Transact-SQL)](../../t-sql/statements/alter-server-audit-transact-sql.md)
50
+
-[DROP SERVER AUDIT (Transact-SQL)](../../t-sql/statements/drop-server-audit-transact-sql.md)
51
+
-[CREATE SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/create-server-audit-specification-transact-sql.md)
52
+
-[ALTER SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/alter-server-audit-specification-transact-sql.md)
53
+
-[DROP SERVER AUDIT SPECIFICATION (Transact-SQL)](../../t-sql/statements/drop-server-audit-specification-transact-sql.md)
Returns a table that lists securable classes that can be mapped to the `class_type` column in the audit log. For more information about [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Audit, see [SQL Server Audit (Database Engine)](../security/auditing/sql-server-audit-database-engine.md).
27
27
28
-
| Column name | Data type | Description |
29
-
| --- | --- | --- |
30
-
|`class_type`|**char(2)**| The class type of the entity that was audited. Maps to the `class_type` written to the audit log returned by the **get_audit_file()** function. Isn't nullable. |
31
-
|`class_type_desc`|**nvarchar(120)**| The name of the class of the object that was audited. Isn't nullable. |
32
-
|`securable_class_desc`|**nvarchar(120)**| The securable class that maps to the `class_type` being audited. `NULL` if the `class_type` doesn't map to a securable object. Can be joined with `class_desc` in `sys.dm_audit_actions.`|
28
+
| Column name | Data type |Nullable |Description |
29
+
| --- | --- | --- | --- |
30
+
|`class_type`|**varchar(2)**|No |The class type of the entity that was audited. Maps to the `class_type` written to the audit log returned by the `get_audit_file()` function. |
31
+
|`class_type_desc`|**nvarchar(35)**|No |The name of the class of the object that was audited. |
32
+
|`securable_class_desc`|**nvarchar(35)**|Yes |The securable class that maps to the `class_type` being audited. Can be`NULL` if the `class_type` doesn't map to a securable object. Can be joined with `class_desc` in `sys.dm_audit_actions.`|
0 commit comments