Created
August 16, 2013 20:38
-
-
Save kveratis/6253332 to your computer and use it in GitHub Desktop.
Code to either rebuild or reorganize an index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Rebuild Index | |
ALTER INDEX PK_Employee_BusinessEntityID ON HumanResources.Employee | |
REBUILD WITH (FILLFACTOR = 80, SORT_IN_TEMPDB = ON); | |
-- Reorganize Index | |
ALTER INDEX PK_Employee_BusinessEntityID ON HumanResources.Employee | |
REORGANIZE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment