SQL Flow Field Guide

:: (Scope Resolution)

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

static member access type::Method()

What changes

Input
a CLR type (e.g. geography, hierarchyid)
Output or change
value from a static method or property

Syntax at a glance

type_name::static_member

Work example

A calculation or condition needs the exact behavior of scope resolution (Scope Resolution) before it is used on a column.

Run a literal-only check with ordinary, boundary, and NULL inputs. Add parentheses and explicit casts where intent could be unclear.

Check your work scope resolution (Scope Resolution). The output for scope resolution (Scope Resolution) matches the intended type, value, and NULL behavior.

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