SQL Flow Field Guide

Set trace flags with DBCC TRACEON

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

none (documentation, rules or examples)

What changes

Input
none
Output or change
none

Syntax at a glance

n/a (reference page)

Work example

A runbook lists trace flags and needs a version-specific support review.

Check each flag against its Microsoft reference, scope, startup behavior, and current service pack.

Check your work Every listed flag has a current use case and no unsupported flag remains enabled.

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