SQL Flow Field Guide

DROP PROCEDURE

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

removes a stored procedure (CREATE OR ALTER supported)

What changes

Input
module body (its own statements and their sources)
Output or change
module definition

Syntax at a glance

DROP { PROC | PROCEDURE } [ IF EXISTS ] { [ schema_name. ] procedure } [ , ...n ]

Work example

A stored procedure is retired after application callers migrate.

Search scheduled jobs, permissions, reports, and modules for references before removal.

Check your work All callers use the replacement and the old procedure has no required grant.

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