Forum Discussion
akaraulli
Feb 21, 2024Brass Contributor
OS User missing in fields of sys.fn_get_audit_file
Hi Operating system user is missing in fields of sys.fn_get_audit_file. https://learn.microsoft.com/en-us/sql/relational-databases/system-functions/sys-fn-get-audit-file-transact-sql?view=sql-ser...
akaraulli
Feb 26, 2024Brass Contributor
I am talking for the Client's OS user. The one that connects to the SQL Server via the SQL Server Client.
olafhelper
Feb 27, 2024Bronze Contributor
Again, SQL Server service account creating the audit files, not a user.
- akaraulliAug 28, 2024Brass ContributorHi Olaf
May be I was not clear enough.
Say one connects from a certain PC X, with an certain OS user, to a MS SQL Server - using SQL Server Client. CouldI be using SQL Studio or any other program that connects to SQL Server.
In the Audit Trail, which can be accessed by sys.fn_get_audit_file, I would like to see the OS User of the PC X. Just like I can see, ex., field application_name.
Seems this is missing on sys.fn_get_audit_file's result.
best regards
Altin - akaraulliFeb 27, 2024Brass ContributorIs there any plan to introduce Client's OS User in future versions ?
In other DBs - ex Oracle - its is there since long time ago