Created
July 27, 2015 06:14
-
-
Save jeffjohnson9046/77cea0a9d55c42d831af to your computer and use it in GitHub Desktop.
MSSQL: Inspect Indexes and their fill factor settings
This file contains 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
SELECT OBJECT_NAME(object_id) as table_name, name, type_desc, is_primary_key, fill_factor FROM sys.indexes; | |
USE [whatever database] | |
GO | |
ALTER INDEX PK_GeoRoot ON GeoRoot | |
REBUILD WITH (FILLFACTOR = 80); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment