ALTER INDEX和DBCC DBREINDEX有什么区别?


9

唯一的区别是

ALTER INDEX [index_name] on [object_name] REBUILD with (ONLINE=OFF, FILLFACTOR=90)

DBCC DBREINDEX([dbname], 90) 

仅仅是DBCC命令将重新索引数据库中所有表上的所有索引?

Answers:



2

第一个是当前用法,第二个在SQL 2005中已弃用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.