对于表的index来说,如果这个表的index size非常大的话,建议对这个表的index单独重建索引。
对全表做重建索引:
alter index all on Table rebuild with(online=on)
仅仅对表上的一个index做重建索引:
ALTER INDEX [Index_name] ON [dbo].[Table] REBUILD with (online=on)
对于表的index来说,如果这个表的index size非常大的话,建议对这个表的index单独重建索引。
对全表做重建索引:
alter index all on Table rebuild with(online=on)
仅仅对表上的一个index做重建索引:
ALTER INDEX [Index_name] ON [dbo].[Table] REBUILD with (online=on)