You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IF @UpdateStatistics NOTIN('ALL','COLUMNS','INDEX')
@@ -1943,7 +1953,7 @@ BEGIN
1943
1953
-- Which actions are allowed?
1944
1954
IF @CurrentIndexID ISNOTNULLANDEXISTS(SELECT*FROM @ActionsPreferred)
1945
1955
BEGIN
1946
-
IF @CurrentOnReadOnlyFileGroup =0AND @CurrentIndexType IN (1,2,3,4,5) AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL) AND (@CurrentAllowPageLocks =1OR @CurrentIndexType =5)
1956
+
IF @CurrentOnReadOnlyFileGroup =0AND @CurrentIndexType IN (1,2,3,4,5,6) AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL) AND (@CurrentAllowPageLocks =1OR @CurrentIndexType IN (5,6))
1947
1957
BEGIN
1948
1958
INSERTINTO @CurrentActionsAllowed ([Action])
1949
1959
VALUES ('INDEX_REORGANIZE')
@@ -1953,7 +1963,7 @@ BEGIN
1953
1963
INSERTINTO @CurrentActionsAllowed ([Action])
1954
1964
VALUES ('INDEX_REBUILD_OFFLINE')
1955
1965
END
1956
-
IF @CurrentOnReadOnlyFileGroup =0
1966
+
IF( @CurrentOnReadOnlyFileGroup =0
1957
1967
AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL)
1958
1968
AND (@CurrentIsPartition =0OR @Version >=12)
1959
1969
AND ((@CurrentIndexType =1AND @CurrentIsImageText =0AND @CurrentIsNewLOB =0)
@@ -1962,6 +1972,14 @@ BEGIN
1962
1972
OR (@CurrentIndexType =2AND @Version >=11))
1963
1973
AND (@CurrentIsColumnStore =0OR @Version <11)
1964
1974
ANDSERVERPROPERTY('EngineEdition') IN (3,5,8)
1975
+
)
1976
+
-- Modified for Columnstore (for 2019+ version)
1977
+
OR (@CurrentOnReadOnlyFileGroup =0
1978
+
AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL)
0 commit comments