Open DreamThemeGH opened 3 years ago
I am having same error. How was this issue resolved?
Welp, there should be a logic for for @PartitionLevel = 'Y' but I just disabled the whole string with @ Version >= 99. Resumable index ops are of no use for me anyway.
Description of the issue Error "The multi-part identifier "partitions.partition_number" could not be bound.". I think, that the join by partition should be optional for @PartitionLevel = 'Y'
SQL Server version and edition Microsoft SQL Server 2017
Version of the script Version: 2020-12-31 18:58:56
What command are you executing? EXECUTE service.IndexOptimize @Databases = 'MyBase', @FragmentationLow = NULL, @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @Indexes = 'ALL_INDEXES',--, -AdventureWorks.Production.Product' @UpdateStatistics = 'ALL', @StatisticsSample = 100, --!!! @TimeLimit = 3600, @LogToTable = 'Y';
What output are you getting? Error "The multi-part identifier "partitions.partition_number" could not be bound."