FIX: Error 41317 when you enable server audit and you use in-memory transactions in SQL Server

Applies to: SQL Server 2016 DeveloperSQL Server 2016 EnterpriseSQL Server 2016 Enterprise Core More


Assume that you use in-memory transactions together with the sp_getapplock system stored procedure in Microsoft SQL Server 2016 or 2017. If you enable server auditing on the SCHEMA_OBJECT_ACCESS_GROUP server-level audit action group, you receive a "Msg 41317" error message that resembles following:



This problem is fixed in the following cumulative updates for SQL Server:

Cumulative Update 13 for SQL Server 2017

Cumulative Update 3 for SQL Server 2016 Service Pack 2.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


Learn about the terminology Microsoft uses to describe software updates.