Blog Post

Indexes optimize for the system databases

,

Maintenance of the system databases in SQL Server regarding the indexes is important too. The system tables also have indexes and their maintenance is of asset on busy environments.
It’s important to know that the indexes in msdb and master are marked as system objects, so if you have your own customised scripts you should take in consideration the  is_ms_shipped  system column. 
Going for this with Ola's scripts, you should set the @MSShippedObjects = 'Y' parameter in the IndexOptimize stored procedure.
EXECUTE [master].[dbo].[IndexOptimize]
              @Databases = 'msdb,master',
              @maxDop = 1,
              @SortInTempdb = 'Y',
              @FragmentationLevel1 = 5,
              @FragmentationLevel2 = 30,
              @UpdateStatistics = 'ALL',
              @OnlyModifiedStatistics = 'Y',
              @LogToTable = 'N',
@MSShippedObjects = 'Y'

Rate

Share

Share

Rate