exec sys.fngetaudit_file
- User
exec sys.fn_get_audit_file
- Assistant
The
sys.fn_get_audit_filefunction in SQL Server is used to read the contents of an audit file generated by SQL Server's auditing feature. This function returns the contents of the specified audit file in a tabular format, which helps administrators and users analyze the audit data.Syntax
sqlsys.fn_get_audit_file ( 'filename' , -- The path and filename of the audit file default, -- Usage for default options 'max file size' -- Optional maximum number of rows to return ) - User
если возвращает пустые файлы
- Assistant
Если функция
sys.fn_get_audit_fileвозвращает пустые результирующие наборы, это может быть вызвано рядом причин. Вот некоторые из возможных причин и шаги по их устранению:Возможные причины