This is a known issue, and a fix is currently being deployed. In the meantime, you can use the master database to query audit logs as a workaround.
What collations does sys.fn_get_audit_file_v2 support
Jakob Hommelhoff
0
Reputation points
When calling the function on a server with default collation Latin1_General_100_CI_AS_SC_UTF8 I get this error:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_100_CI_AS_SC_UTF8" in the equal to operation.
Using collate with the various input paramteres does not seem to have an effect?
Is the function limited to databases with SQL_Latin1_General_CP1_CI_AS as default collation?
SQL Server Database Engine
1 answer
Sort by: Most helpful
-
Sravani Saluru 5 Reputation points Microsoft Employee
2025-10-15T06:48:22.3366667+00:00