SQL Flow Field Guide

DROP VIEW

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

removes 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

DROP VIEW [ IF EXISTS ] [ schema_name . ] view_name [ ...,n ] [ ; ]

Work example

A view is retired after reports and dependent views move to a replacement.

Search modules, grants, reports, and schema-bound dependencies before removal.

Check your work No live caller uses the view and the replacement returns the expected columns.

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