摘要:
Pull fragmentation statistics: SELECT OBJECT_schema_NAME(a.OBJECT_ID)+'.'+OBJECT_NAME(a.OBJECT_ID)ASObjectName, a.OBJECT_IDASObjectID, a.index_idASIndexID, b.nameASIndexName, a.avg_fragmentation_... 阅读全文
摘要:
DBCCDBReindex(TableName, '',90) Or ALTERINDEXALLONTableNameREBUILDWITH (FILLFACTOR=90,SORT_IN_TEMPDB=ON,STATISTICS_NORECOMPUTE=OFF,ONLINE=OFF); 90 Refers to page density 90%, 10% is reserved for updat... 阅读全文