Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 32fd3a0

Browse files
authored
Update sys-fn-get-audit-file-transact-sql.md
documented new fields that were added to the audit log
1 parent 608102f commit 32fd3a0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

docs/relational-databases/system-functions/sys-fn-get-audit-file-transact-sql.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ fn_get_audit_file ( file_pattern,
117117
|user_defined_event_id|**smallint**|**Applies to**: [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)].<br /><br /> User defined event id passed as an argument to **sp_audit_write**. **NULL** for system events (default) and non-zero for user-defined event. For more information, see [sp_audit_write &#40;Transact-SQL&#41;](../../relational-databases/system-stored-procedures/sp-audit-write-transact-sql.md).|
118118
|user_defined_information|**nvarchar(4000)**|**Applies to**: [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] through [!INCLUDE[ssCurrent](../../includes/sscurrent-md.md)].<br /><br /> Used to record any extra information the user wants to record in |audit log by using the **sp_audit_write** stored procedure.|
119119
|audit_schema_version |**int** | |
120-
|sequence_group_id |**varbinary** | SQL Server only (starting with 2016) |
121-
|transaction_id |**bigint** | SQL Server only (starting with 2016) |
122-
|client_ip |**nvarchar(128)** | Azure SQL DB + SQL Server (starting with 2017) |
123-
|application_name |**nvarchar(128)** | Azure SQL DB + SQL Server (starting with 2017) |
124-
|duration_milliseconds |**bigint** | Azure SQL DB only |
125-
|response_rows |**bigint** | Azure SQL DB only |
126-
|affected_rows |**bigint** | Azure SQL DB only |
120+
|sequence_group_id |**varbinary** | **Applies to**: SQL Server only (starting with 2016) |
121+
|transaction_id |**bigint** | **Applies to**: SQL Server only (starting with 2016) |
122+
|client_ip |**nvarchar(128)** | **Applies to**: Azure SQL DB + SQL Server (starting with 2017) |
123+
|application_name |**nvarchar(128)** | **Applies to**: Azure SQL DB + SQL Server (starting with 2017) |
124+
|duration_milliseconds |**bigint** | **Applies to**: Azure SQL DB only |
125+
|response_rows |**bigint** | **Applies to**: Azure SQL DB only |
126+
|affected_rows |**bigint** | **Applies to**: Azure SQL DB only |
127+
|connection_id |GUID | **Applies to**: Azure SQL DB only |
128+
|data_sensitivity_information |nvarchar(4000) | **Applies to**: Azure SQL DB only |
127129

128130
## Remarks
129131
If the *file_pattern* argument passed to **fn_get_audit_file** references a path or file that does not exist, or if the file is not an audit file, the **MSG_INVALID_AUDIT_FILE** error message is returned.

0 commit comments

Comments
 (0)