Udostępnij za pośrednictwem


sys.server_file_audits (Transact-SQL)

Contains extended information about the file audit type in a SQL Server audit on a server instance. For more information, see Understanding SQL Server Audit.

Column name

Data type

Description

audit_id

int

ID of the audit.

name

sysname

Name of the audit.

audit_guid

uniqueidentifier

GUID of the audit.

create_date

datetime

UTC date when the file audit was created.

modify_date

datatime

UTC date when the file audit was last modified.

principal_id

int

ID of the owner of the audit as registered on the server.

type

char(2)

Audit type:

0 = NT Security event log

1 = NT Application event log

2 = File on file system

type_desc

nvarchar(60)

Audit type description.

on_failure

tinyint

On Failure condition:

0 = Continue

1 = Shut down server instance

on_failure_desc

nvarchar(60)

On Failure to write an action entry:

CONTINUE

SHUTDOWN SERVER INSTANCE

is_state_enabled

tinyint

0 = Disabled

1 = Enabled

queue_delay

int

Suggested maximum time, in milliseconds, to wait before writing to disk. If 0, the audit will guarantee a write before the event can continue.

max_file_size

bigint

Maximum size, in kilobytes, of the audit:

0 = Unlimited/Not applicable to the type of audit selected.

max_rollover_files

int

Maximum number of files to use.

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.

Permissions

Principals with the VIEW AUDIT STATE permission have access to this catalog view.

In SQL Server 2005 and later versions, the visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Konfiguracja widoczność metadane.

See Also

Reference

Other Resources