Skip to content

Commit 477fcb1

Browse files
Fixed 'STATISTICS_NORECOMPUTE' is not a recognized ALTER INDEX REBUILD PARTITION option
1 parent cbcbca0 commit 477fcb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Index.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public string GetQuery() {
145145
(IsPartitioned || Settings.Options.FillFactor == 0
146146
? ""
147147
: $"FILLFACTOR = {Settings.Options.FillFactor}, ") +
148-
(IndexType == IndexType.HEAP
148+
(IndexType == IndexType.HEAP || IsPartitioned
149149
? ""
150150
: $"STATISTICS_NORECOMPUTE = {nr}, ") +
151151
(!IsAllowCompression

0 commit comments

Comments
 (0)