How do I determine the current value of the following sa_server_option settings?
DropBadStatistics YES, NO
Allows automatic statistics management to drop statistics that return bad estimates from the database.
DropUnusedStatistics YES, NO
Allows automatic statistics management to drop statistics that have not been used for 90 consecutive days from the database.
StatisticsCleaner ON, OFF
The statistics cleaner fixes statistics that give bad estimates by performing scans on tables. By default the statistics cleaner runs in the background and has a minimal impact on performance.
Turning off the statistics cleaner does not disable the statistic governor, but when the statistics cleaner is turned off, statistics are only created or fixed when a query is run.
asked
23 Apr '21, 14:24
Breck Carter
32.5k●540●724●1050
accept rate:
20%
I do not think there is currently a way to get this information. If that is the case, I will investigate getting this added to a future EBF.