SQL Flow Field Guide

@@VERSION

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

reads configuration (@@ function)

What changes

Input
server or session configuration state
Output or change
value
Return type
nvarchar

Syntax at a glance

@@VERSION

Work example

Capture the engine version string for a support diagnostic.

Read in the same session and compare before and after a controlled session setting change.

Check your work Parse version data deliberately because the string format can change between releases.

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