From 1686b7f1b2653b34507e54b4ddc6e0d1dcbe8b3f Mon Sep 17 00:00:00 2001 From: Oberdan Schaider <65258315+oberdansch@users.noreply.github.com> Date: Fri, 12 Dec 2025 09:36:45 -0300 Subject: [PATCH] Update sys-server-file-audits-transact-sql.md Added retention_days. --- .../sys-server-file-audits-transact-sql.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/relational-databases/system-catalog-views/sys-server-file-audits-transact-sql.md b/docs/relational-databases/system-catalog-views/sys-server-file-audits-transact-sql.md index b9d4e5054bc..a4793eedd3e 100644 --- a/docs/relational-databases/system-catalog-views/sys-server-file-audits-transact-sql.md +++ b/docs/relational-databases/system-catalog-views/sys-server-file-audits-transact-sql.md @@ -42,7 +42,8 @@ dev_langs: |max_files|**int**|Maximum number of files to use without the rollover option.| |reserved_disk_space|**int**|Amount of disk space to reserve per file.| |log_file_path|**nvarchar(260)**|Path to where audit is located. File path for file audit, application log path for application log audit.| -|log_file_name|**nvarchar(260)**|Base name for the log file supplied in the CREATE AUDIT DDL. An incremental number is added to the base_log_name file as a suffix to create the log file name.| +|log_file_name|**nvarchar(260)**|Base name for the log file supplied in the CREATE AUDIT DDL. An incremental number is added to the base_log_name file as a suffix to create the log file name.| +|retention_days|**int**|Lifetime in days of the audit log file. Applies to Azure SQL Database and Azure SQL Managed Instance

0 = Unlimited. | ## Permissions Principals with the **ALTER ANY SERVER AUDIT** or **VIEW ANY DEFINITION** permission have access to this catalog view. In addition, the principal must not be denied **VIEW ANY DEFINITION** permission.