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.
1 parent af934ef commit 68fc638Copy full SHA for 68fc638
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