Skip to content

Commit ef45f5e

Browse files
authored
Update create-server-audit-transact-sql.md
Added retention period
1 parent 4ac6a89 commit ef45f5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/t-sql/statements/create-server-audit-transact-sql.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ CREATE SERVER AUDIT audit_name
5555
[ , ON_FAILURE = { CONTINUE | SHUTDOWN | FAIL_OPERATION } ]
5656
[ , AUDIT_GUID = uniqueidentifier ]
5757
[ , OPERATOR_AUDIT = { ON | OFF } ]
58+
[ , RETENTION_DAYS = integer ]
5859
}
5960
6061
<predicate_expression> ::=
@@ -141,6 +142,12 @@ To support scenarios such as database mirroring or databases participating in an
141142

142143
Indicates whether auditing captures Microsoft support engineer operations when they need to access your server during a support request.
143144

145+
#### RETENTION_DAYS
146+
147+
**Applies to:** Azure SQL Managed Instance and Azure SQL Database only.
148+
149+
Indicates the number of days of the audit log file storage period.
150+
144151
#### predicate_expression
145152

146153
Specifies the predicate expression used to determine if an event should be processed or not. Predicate expressions are limited to a length of 3,000 characters, which limits string arguments.

0 commit comments

Comments
 (0)