Hello,
There are a number of limitations and requirements when performing partition SWITCH operation in SQL Sever. I found this old documentation, which applies to SQL Server 2008R2: https://learn.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms191160(v=sql.105)
However, this article is very old and it looks like at least some of the requirements listed there no longer apply. For example, I am using SQL Server 2019 and I am able to SWITCH partitions between tables, which don't have the same primary keys defined. Despite this, the SWTICH works fine.
For the life of me, I can't find anything more recent than the link I shared above. Is there updated documentation for this functionality?