使用Ola的碎片整理脚本接收错误

时间:2018-09-05 16:33:57

标签: sql defragmentation

使用EXECUTES重建碎片整理SP并从其中排除索引时,出现以下错误:

消息50000,级别16,状态1,过程索引优化,第918行 不支持参数@Indexes的值。

消息50000,级别16,状态1,过程索引优化,行1009 该文档位于https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html

据我所知,我的语法是正确的,并且遵循Ola的文档到T。有什么想法吗?

示例代码:

EXECUTE dbo.IndexOptimize
@Databases = 'SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@Indexes = 'ALL_INDEXES, -SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.InstancesTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.RunnableInstancesTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.LockOwnersTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.ServiceDeploymentsTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.InstancePromotedPropertiesTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.DefinitionIdentityTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.KeysTable,
-SqlWorkflowInstanceStore_RBC_ITS-QA-Canada.27.System.Activities.DurableInstancing.IdentityOwnerTable'

0 个答案:

没有答案