SQL Flow Field Guide

DBCC DBREINDEX

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

DBCC DBREINDEX: administrative check or maintenance

What changes

Input
database, table, index, cache or server state named in the command
Output or change
messages or result sets; maintenance forms change storage, caches or metadata

Syntax at a glance

DBCC DBREINDEX ( table_name [ , index_name [ , fillfactor ] ] ) [ WITH NO_INFOMSGS ]

Work example

An old maintenance script still calls the deprecated DBCC DBREINDEX command.

Replace it with reviewed ALTER INDEX maintenance and compare the target index and fill factor.

Check your work The new job uses supported syntax and preserves the required index settings.

Open Microsoft Learn for full syntax, permissions, and details for your version.