What collations does sys.fn_get_audit_file_v2 support

Jakob Hommelhoff 0 Reputation points
2025-09-03T08:56:40.3666667+00:00

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
{count} votes

1 answer

Sort by: Most helpful
  1. Sravani Saluru 5 Reputation points Microsoft Employee
    2025-10-15T06:48:22.3366667+00:00

    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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.