We have a datarows locked table with partitions. We have 3 indexes on the table
1 unique clustered (local)
2 non-unique non-clustered (1 local and 1 global)
systabstats shows one of the partitions has forwarded rows and deleted rows...
ie
select object_namests.id, sts.indid, sp.name, sts.forwrowcnt, sts.delrowcnt
from systabstats sts,
syspartitions sp
where sts.partitionid = sp.partitionid
gives
indid forwrowcnt delrowcnt
------------------------------ ------ -------------------- -------------------- --------------------
ETP 0 p20 111260.000000 555628.000000
I ran
reorg reclaim_space ETP partition p20
and the delrowcount reduced
I tried
reorg forwarded_rows ETP partition p20
but the forwrowcnt remained the same.
I tried running this on all the partitions - no change.
I tried
reorg rebuild on the clustered index partitions (didn't expect this to work but tried it just in case)
I tried
update statistics - just to check
Nothing I've tried will remove the forwrowcnt
Am I doing something wrong ?
Is a rebuild on the whole table the one way to remove the forwarded rows ?
Its a large table so not easy to do this.