SQL Server Error Msg 4969 – ALTER TABLE SWITCH statement failed. Foreign key constraint ‘%.*ls’ is disabled in source table ‘%.*ls’ and the corresponding constraint ‘%.*ls’ is enabled in target table ‘%.*ls’.  The source table constraint must be enabled.

In this blog post, let’s learn about the error message “4969 – ALTER TABLE SWITCH statement failed. Foreign key constraint ‘%.*ls’ is disabled in source table ‘%.*ls’ and the corresponding constraint ‘%.*ls’ is enabled in target table ‘%.*ls’.  The source table constraint must be enabled.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

4969 – ALTER TABLE SWITCH statement failed. Foreign key constraint ‘%.*ls’ is disabled in source table ‘%.*ls’ and the corresponding constraint ‘%.*ls’ is enabled in target table ‘%.*ls’.  The source table constraint must be enabled.

Reason for the Error

To be update soon…

Solution

To be update soon…