We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4611484 + 68fc638 commit f5d1d1bCopy full SHA for f5d1d1b
IndexOptimize.sql
@@ -2239,16 +2239,16 @@ BEGIN
2239
SELECT 'SAMPLE ' + CAST(@CurrentStatisticsSample AS nvarchar) + ' PERCENT'
2240
END
2241
2242
- IF @CurrentStatisticsResample = 'Y'
+ IF @CurrentNoRecompute = 1
2243
BEGIN
2244
INSERT INTO @CurrentUpdateStatisticsWithClauseArguments (Argument)
2245
- SELECT 'RESAMPLE'
+ SELECT 'NORECOMPUTE'
2246
2247
2248
- IF @CurrentNoRecompute = 1
+ IF @CurrentStatisticsResample = 'Y'
2249
2250
2251
- SELECT 'NORECOMPUTE'
+ SELECT 'RESAMPLE'
2252
2253
2254
IF EXISTS (SELECT * FROM @CurrentUpdateStatisticsWithClauseArguments)
0 commit comments