In https://stackoverflow.com/a/26048363/143768, a clever way of eliminating the IDENTITY property from a table was provided using the magic of partition switching. This approach, however, does not work if your table is already partitioned. (And, in fact, this method is more applicable to very large multi-terabyte tables, which are likely are already partitioned.)
Since I am working in exactly this situation — trying to eliminate the IDENTITY attribute on some very large tables — does anyone know how to adapt this solution to already-partitioned tables?
EDIT: This is actually more complicated than I originally envisioned. There is at least one index that is not partitioned. When I try traditional partition switching:
ALTER TABLE [dbo].[era_adj] SWITCH PARTITION 1 TO [dbo].[tmp_ms_xx_era_adj] PARTITION 1;
. . .
ALTER TABLE [dbo].[era_adj] SWITCH PARTITION 57 TO [dbo].[tmp_ms_xx_era_adj] PARTITION 57;
I get the error:
Msg 7733, Level 16, State 4, Line 21
'ALTER TABLE SWITCH' statement failed. The table 'ERADev.dbo.era_adj' is partitioned while index 'PK_era_adj' is not partitioned.
So now I also need to figure out how to partition my indexes...