Hello
I have a 24x7 available table and i need to move this table to new partition scheme online. This table has clustered primary key and couple of non-clustered indexes.
I went through this good post: http://sqlandme.com/2011/08/09/sql-server-how-to-partition-an-existing-table/ and i found out that i can create clustered index using (Drop_existing=on ) online. But if i have clustered primary key how i can i move it to new partition scheme online as i cannot use create index with Drop_existing for clustered primary key.
Can clustered primary key can be rebuilt online on new partition scheme. similar to:
ALTER INDEX PK_PrimaryKeyTest ON PrimaryKeyTest REBUILD PARTITION = ALL WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, ONLINE = ON, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON ) GO
Thank you for your valuable time.
-Mushtaq