I would like to know if we can update the statistics of an index that has been reorganized, using the IndexOptimize script.
Indeed, an index that is reorganized needs to have its statistics updated. Is there a way to use IndexOptimize script to update the statistics of this reorganized index only?
For instance, is there a flag to recognize the reorganized index in order to update the statistics on this flagged index?
Thanks.
Sql-server – How to update the statistics of an index that has just been reorganized, both with IndexOptimize script
index-statisticssql server
Related Question
- SQL Server Indexing – Ola Hallengren Index Script Not Reindexing
- SQL Server Table Partitioning – Minimizing Downtime and Updating Statistics
- SQL Server – Auto Created Statistics vs Manually Created Statistics
- SQL Server – Setting Foreign Key Constraint Back to Trusted
- SQL Server – How to Update Statistics with Data from the Last Day Only
- Sql-server – Statistics disappearing/empty randomly throughout the day
- SQL Server Maintenance – IndexOptimize Configuration with Ola Hallengren
Best Answer
I take it that you are referring to Ola Hallengren's scripts.
I can't find any parameter combo that would do what you ask. It is a pretty reasonable thing to ask for, though. IndexOptimize is pretty much separate in the handling of defrag vs updstats. Your options, as far as I can see:
Possibly some more, but those are the ones I can think of right now. :-)