千家信息网

SQL Server 2014的重建索引

发表于:2025-02-05 作者:千家信息网编辑
千家信息网最后更新 2025年02月05日,对于表的index来说,如果这个表的index size非常大的话,建议对这个表的index单独重建索引。对全表做重建索引:alter index all on Table rebuild with(
千家信息网最后更新 2025年02月05日SQL Server 2014的重建索引

对于表的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)



0