SQL Server Error Msg 4968 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has foreign key for constraint ‘%.*ls’ but source table ‘%.*ls’ does not have corresponding key.

In this blog post, let’s learn about the error message “4968 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has foreign key for constraint ‘%.*ls’ but source table ‘%.*ls’ does not have corresponding key.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

4968 – ALTER TABLE SWITCH statement failed. Target table ‘%.*ls’ has foreign key for constraint ‘%.*ls’ but source table ‘%.*ls’ does not have corresponding key.

Reason for the Error

To be update soon…

Solution

To be update soon…