Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d8b53fc

Browse files
Merge pull request BrentOzarULTD#1314 from BrentOzarULTD/issue_1311/brent
BrentOzarULTD#1311 sp_BlitzIndex add ALTER TABLE REBUILD command for heaps
2 parents 187881c + 491e8b0 commit d8b53fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎sp_BlitzIndex.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ SELECT
17521752
THEN N'--DROP INDEX ' + QUOTENAME([index_name]) + N' ON '
17531753
+ QUOTENAME([schema_name]) + N'.' + QUOTENAME([object_name])
17541754
ELSE
1755-
CASE index_id WHEN 0 THEN N'--I''m a Heap!'
1755+
CASE index_id WHEN 0 THEN N'ALTER TABLE '+QUOTENAME([database_name]) +N'.'+QUOTENAME([schema_name]) +N'.'+QUOTENAME([object_name]) +' REBUILD;'
17561756
ELSE
17571757
CASE WHEN is_XML = 1 OR is_spatial=1 THEN N'' /* Not even trying for these just yet...*/
17581758
ELSE

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /