Skip to content

Conversation

@lukaszherman
Copy link

In most cases I would like to update statistics on small indexes daily and weekly do it on all big one.

EXECUTE dbo.IndexOptimize
@databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL',
@StatisticsSample = 100,
@StatisticsRowsMin = 1000,
@StatisticsRowsMax = 50000000,
@Timelimit = 3600,
@LogToTable = 'Y',
@execute = 'N'

In most cases I would like to update statistics on small indexes daily and weekly do it on all big one.

EXECUTE dbo.IndexOptimize
@databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL',
@StatisticsSample = 100,
@StatisticsRowsMin = 1000,
@StatisticsRowsMax = 50000000,
@Timelimit = 3600,
@LogToTable = 'Y',
@execute = 'N'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant