-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Statistics on Partitioned Table - getting 'NORECOMPUTE' is not a recognized #285
Comments
For now, changed the IndexOptimize to Insert the NORECOMPUTE argument before the RESAMPLE argument.
|
Sorry, meant to just add the comment, not close the issue. |
I've also experienced this issue. The manual bugfix worked for me. |
This seems like such an easy fix. Why hasn't it just been added to the official release? |
I don’t want to speak for him but writing free software is unpaid work that never ends, making changes that he doesn’t need. It would be nice to have one source but we really can’t demand anything. |
You are right of course. I am not trying to criticize Ola or what he chooses to focus on. Just observing that it is an easy fix. Of course, There may be ramifications when testing against all versions and environments so I should just keep quiet. I'm glad I have a solution. |
I had the same thoughts. My reply is as much to myself as it is to you 😅 |
Changing IndexOptimize to Insert the NORECOMPUTE argument before the RESAMPLE argument worked for me as well per @ShakerGit 's suggestion in #285 (comment) |
I just had the same error and found this thread. If you already know how to fix this, why not just open a pull request with the fix? By the way, this is also relevant to issue #106 |
Description of the issue
Getting 'NORECOMPUTE' is not a recognized UPDATE STATISTICS option when running IndexOptimize on partitioned Table.
UPDATE STATISTICS [xyzdb].[dbo].[xyzTBL] [_WA_Sys_00000005_206A9855] WITH RESAMPLE, NORECOMPUTE ON PARTITIONS(1)
If I manually run the command switching the NORECOMPUTE and RESAMPLE options as below then it runs fine.
UPDATE STATISTICS [xyzdb].[dbo].[xyzTBL] [_WA_Sys_00000005_206A9855] WITH NORECOMPUTE, RESAMPLE ON PARTITIONS(1)
SQL Server version and edition
Execute
SELECT @@VERSION
Microsoft SQL Server 2017 (RTM-CU16) (KB4508218) - 14.0.3223.3 (X64) Jul 12 2019 17:43:08 Copyright (C) 2017 Microsoft Corporation Enterprise Edition (64-bit) on Windows Server 2016 Standard 10.0 (Build 14393: )
Version of the script
Check the header of the stored procedure
Version: 2019-06-14 00:05:34
What command are you executing?
IndexOptimize
UPDATE STATISTICS [xyzdb].[dbo].[xyzTBL] [_WA_Sys_00000005_206A9855] WITH RESAMPLE, NORECOMPUTE ON PARTITIONS(1)
What output are you getting?
Msg Msg 155, 'NORECOMPUTE' is not a recognized UPDATE STATISTICS option.
The text was updated successfully, but these errors were encountered: