DBCC TRACESTATUS
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.