SQL Flow Field Guide

ALTER DATABASE AUDIT SPECIFICATION

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

changes a database audit specification

What changes

Input
catalog
Output or change
security catalog: database audit specification

Syntax at a glance

ALTER DATABASE AUDIT SPECIFICATION audit_specification_name { [ FOR SERVER AUDIT audit_name ] [ { { ADD | DROP } ( { <audit_action_specification> | audit_action_group_name } ) } [, ...n] ] [ WITH ( STATE = { ON | OFF } ) ] } [ ; ]

Work example

A database audit must add or remove a selected action group.

Map the change to a control requirement and review destination capacity and retention.

Check your work A lab action produces the required event without disabling other required audit coverage.

Open Microsoft Learn for full syntax, permissions, and details for your version.