General Restrictions for the ATTACH Clause
This clause is not valid in ALTER FRAGMENT ON INDEX statements.
Any tables that you attach must have been created previously in separate partitions. You cannot attach the same table more than once.
All consumed tables listed in the ATTACH clause must have the same structure as the surviving table. The number, names, data types, and relative position of the columns must be identical.
The expression cannot include aggregates, subqueries, or variant functions.