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')
@@ -1972,7 +1982,7 @@ BEGIN
1972
1982
-- Which actions are allowed?
1973
1983
IF @CurrentIndexID ISNOTNULLANDEXISTS(SELECT*FROM @ActionsPreferred)
1974
1984
BEGIN
1975
-
IF @CurrentOnReadOnlyFileGroup =0AND @CurrentIndexType IN (1,2,3,4,5) AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL) AND (@CurrentAllowPageLocks =1OR @CurrentIndexType =5)
1985
+
IF @CurrentOnReadOnlyFileGroup =0AND @CurrentIndexType IN (1,2,3,4,5,6) AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL) AND (@CurrentAllowPageLocks =1OR @CurrentIndexType IN (5,6))
1976
1986
BEGIN
1977
1987
INSERTINTO @CurrentActionsAllowed ([Action])
1978
1988
VALUES ('INDEX_REORGANIZE')
@@ -1982,7 +1992,7 @@ BEGIN
1982
1992
INSERTINTO @CurrentActionsAllowed ([Action])
1983
1993
VALUES ('INDEX_REBUILD_OFFLINE')
1984
1994
END
1985
-
IF @CurrentOnReadOnlyFileGroup =0
1995
+
IF( @CurrentOnReadOnlyFileGroup =0
1986
1996
AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL)
1987
1997
AND (@CurrentIsPartition =0OR @Version >=12)
1988
1998
AND ((@CurrentIndexType =1AND @CurrentIsImageText =0AND @CurrentIsNewLOB =0)
@@ -1991,6 +2001,14 @@ BEGIN
1991
2001
OR (@CurrentIndexType =2AND @Version >=11))
1992
2002
AND (@CurrentIsColumnStore =0OR @Version <11)
1993
2003
ANDSERVERPROPERTY('EngineEdition') IN (3,5,8)
2004
+
)
2005
+
-- Modified for Columnstore (for 2019+ version)
2006
+
OR (@CurrentOnReadOnlyFileGroup =0
2007
+
AND (@CurrentIsMemoryOptimized =0OR @CurrentIsMemoryOptimized ISNULL)
0 commit comments