SQL Server Error Msg 4976 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has a check constraint ‘%.*ls’ on an XML column, but the source table ‘%.*ls’ does not have an identical check constraint.

In this blog post, let’s learn about the error message “4976 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has a check constraint ‘%.*ls’ on an XML column, but the source table ‘%.*ls’ does not have an identical check constraint.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

4976 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has a check constraint ‘%.*ls’ on an XML column, but the source table ‘%.*ls’ does not have an identical check constraint.

Reason for the Error

To be update soon…

Solution

To be update soon…