Suite Orchestrator

indexing.sp_IndexOptimizationSuite — single entry point to run all tools in order with one call.

Tool Run Order

  1. Duplicate Index — first, so redundant indexes are flagged before key-lookup recommends new ones
  2. Key Lookup Elimination
  3. Unused Index Detection
  4. Missing Index (optimize-index)
  5. Expensive Query Analysis
  6. Column Access Patterns

@RunnableUnder

Controls auto-commenting of large index operations. Type: VARCHAR(20).

ValueBehavior
NULL (default)Everything uncommented, no threshold
'2'2 GB threshold for both editions
'1,5e'1 GB for Standard, 5 GB for Enterprise (online rebuilds)

Parses into @ThresholdStd and @ThresholdEnt, resolves to @ActiveThreshold based on edition.

@LinkedServer

Type: BIT, default 0. When 1, post-processes the combined output so each statement is wrapped in EXEC('USE [db]; ...') AT [server];.

@CombinedOutput

When 1, returns one script organized by database → table → tool instead of one row per tool. Every finding for a table is grouped with tool headers.

Error Handling

Each tool runs in its own TRY/CATCH. A failure in one tool does not stop the rest.

Full Parameters

See Quick Start for the complete parameter reference.