SQL Flow Field Guide

DBCC USEROPTIONS

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

reports settings

What changes

Input
session SET options
Output or change
result set of active options

Syntax at a glance

DBCC USEROPTIONS [ WITH NO_INFOMSGS ]

Work example

A query behaves differently across sessions and the team needs their SET options.

Capture the result for each session and compare options that affect parsing, arithmetic, or query plans.

Check your work The sessions have the expected options or the differing option explains the result.

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