DBCC TRACEOFF
disables trace flags
What changes
- Input
- trace flag numbers
- Output or change
- session or global trace flags
Syntax at a glance
DBCC TRACEOFF ( trace# [ , ...n ] [ , -1 ] ) [ WITH NO_INFOMSGS ]
Work example
A reviewed trace flag must be disabled at its documented session or instance scope.
Record the flag, scope, owner, startup setting, and reason before changing it.
Check your work The flag is off at the intended scope and the baseline workload remains healthy.
Open Microsoft Learn for full syntax, permissions, and details for your version.