After you enable a table for change data capture in Microsoft SQL Server 2017, the capture job fails, and you receive an error message that resembles the following:

Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32).
[SQLSTATE 42000] (Error 217)


This fix is included in Cumulative Update 4 for SQL Server 2017.

About SQL Server 2017 builds

Each new build for SQL Server 2017 contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for SQL Server 2017.


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.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!