I have a large fact table that contains one partition by year and month (yyyymm), I need to delete all data in a month and I think to delete and recreate the partition to make my work easier. My table has +200kk of rows and drops partition makes more sense.
I read this Microsoft's
article Load new data into partitions that contain data in one step but is not clear how to drop a partition and recreate another empty partition to load the new data.
Is there a strategy to do this?
Following the process we use in this case:
CREAT TABLE ... AS SELECT...
with the data we want to load into the partition. This table has to be created with exactly the same structure as the destination table and should have the same partition range as the partition you want to change