SQL Server Error Msg 4967 – ALTER TABLE SWITCH statement failed. SWITCH is not allowed because source table ‘%.*ls’ contains primary key for constraint ‘%.*ls’.

In this blog post, let’s learn about the error message “4967 – ALTER TABLE SWITCH statement failed. SWITCH is not allowed because source table ‘%.*ls’ contains primary key for constraint ‘%.*ls’.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

4967 – ALTER TABLE SWITCH statement failed. SWITCH is not allowed because source table ‘%.*ls’ contains primary key for constraint ‘%.*ls’.

Reason for the Error

To be update soon…

Solution

To be update soon…