SQL Server Error Msg 21824 – Can not add constraints to multiple columns because table %s is published but column %s is not in all active partitions, please use separate DDL statement.

In this blog post, let’s learn about the error message “21824 – Can not add constraints to multiple columns because table %s is published but column %s is not in all active partitions, please use separate DDL statement.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

21824 – Can not add constraints to multiple columns because table %s is published but column %s is not in all active partitions, please use separate DDL statement.

Reason for the Error

To be update soon…

Solution

To be update soon…