Symptoms

Consider the following scenario:

  • In SQL Server 2012, 2014, or 2016, you use a filtered (row level) merge publication that has precomputed partitions enabled.

  • You don't have the ALTER TRACE permission.

  • You try to delete a record from the published table (on which the filter is present) by using a DELETE statement that doesn’t meet the filter criteria.

In this scenario, you receive an error message that resembles the following:

Msg 8189, Level 14, State 10, Procedure sp_repl_generateevent, Line 1You do not have permission to run 'SP_TRACE_GENERATEEVENT'.

Resolution

The issue was first fixed in the following cumulative updates of SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:

Status

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

References

Learn about the terminology that Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.