SQL Flow Field Guide

DROP CONTRACT

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

removes contract (no row flow)

What changes

Input
catalog
Output or change
catalog: contract

Syntax at a glance

DROP CONTRACT contract_name [ ; ]

Work example

A Service Broker contract is no longer used by any service or active dialog.

Inspect service definitions and conversation state before removing the contract.

Check your work No deployed service or open dialog requires the contract.

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