ALTER VIEW
changes 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
ALTER VIEW [ schema_name . ] view_name [ ( column [ ,...n ] ) ] [ WITH <view_attribute> [ ,...n ] ] AS select_statement [ WITH CHECK OPTION ] [ ; ]
Work example
A view needs a reviewed projection, filter, or ownership change.
List callers, grants, schema binding, and dependent views before replacing the definition.
Check your work The view returns the documented columns and retains the intended access boundary.
Open Microsoft Learn for full syntax, permissions, and details for your version.