SQL Flow Field Guide

DBCC TRACESTATUS

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

reports trace flags

What changes

Input
trace flag state
Output or change
result set

Syntax at a glance

DBCC TRACESTATUS ( [ [ trace# [ , ...n ] ] [ , ] [ -1 ] ] ) [ WITH NO_INFOMSGS ]

Work example

An incident review needs to see which trace flags are active.

Compare active flags and their scopes with the approved instance configuration.

Check your work Every active flag has a current owner, purpose, and supported version.

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