You cannot attach a table if a check, referential, primary-key, or not null constraint exists on the surviving table.
Drop any check, referential, primary-key, or not null constraint. Then attach the table and if you still want to use the constraint, re-create it.