Applies ToSQL Server 2016 Developer SQL Server 2016 Enterprise SQL Server 2016 Enterprise Core SQL Server 2016 Standard SQL Server 2016 Service Pack 1 SQL Server 2017 on Windows (all editions) SQL Server 2017 on Linux (all editions) SQL Server 2019 on Linux SQL Server 2019 on Windows SQL Server 2022 on Windows (all editions) SQL Server 2022 on Linux (all editions)

Symptoms

Consider the following scenario:

  • You use the Always Encrypted feature of Microsoft SQL Server to encrypt a column in a table.

  • You enable the change data capture (CDC) feature for this table.

  • The encrypted column is not included in the captured column list.

In this scenario, when you try to use the sp_cdc_disable_table system stored procedure to disable CDC for the table, you might receive an error message that resembles the following:  

Msg 22833, Level 16, State 1, Procedure sp_cdc_disable_table_internal, Line LineNumber [Batch Start Line LineNumber] Could not update the metadata that indicates table TableName is not enabled for Change Data Capture. The failure occurred when executing the command 'sp_cdc_disable_table_tranx'. The error returned was 11430: 'Cannot enable change data capture on column 'ColumnName'. Change data capture is not supported for encrypted columns.'. Use the action and error to determine the cause of the failure and resubmit the request.

Resolution

This issue is fixed in the following cumulative updates for 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. Check out the latest cumulative updates for SQL Server:

More information

For more information about the CDC and Always Encrypted features of SQL Server, see the following articles:

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.