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...
olafhelper
Feb 27, 2024Bronze Contributor
Again, SQL Server service account creating the audit files, not a user.
akaraulli
Aug 28, 2024Brass Contributor
Hi 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
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