Thor Logo dbatools

Maintenance

Invoke-DbaDbIndexRebuild

the dbatools team + Claude

Invoke-DbaDbIndexRebuild View Source the dbatools team + Claude Windows, Linux, macOS On this page: Synopsis · Description · Syntax · Examples · Parameters · Outputs Synopsis Rebuilds or reorganizes indexes and heaps across one or more databases. Description Performs index maintenance against a collection of databases, tables, indexed views and indexes, exposing the full ALTER INDEX option set through SMO. Runs in three modes: Rebuild, Reorganize, or Auto, where Auto picks the operation per index from measured fragmentation the way Ola Hallengren’s IndexOptimize does.

Read more