SQL Flow Field Guide

CREATE VIEW

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

defines a view (optionally SCHEMABINDING, indexed when it has a unique clustered index)

What changes

Input
the view query's sources
Output or change
stored query definition

Syntax at a glance

CREATE [ OR ALTER ] VIEW [ schema_name . ] view_name [ (column [ ,...n ] ) ] [ WITH <view_attribute> [ ,...n ] ] AS select_statement [ WITH CHECK OPTION ] [ ; ]

Work example

Several callers need one stable relational interface over a query.

Review column names, ownership chain, schema binding, and changes to every source object.

Check your work The view returns the intended columns and no caller gains access through an unsafe ownership chain.

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