SQL Flow Field Guide

DROP MESSAGE TYPE

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

removes message type (no row flow)

What changes

Input
catalog
Output or change
catalog: message type

Syntax at a glance

DROP MESSAGE TYPE message_type_name [ ; ]

Work example

A Service Broker message type is retired after contracts and dialogs move.

Check contracts, services, queued messages, and active conversations that use the type.

Check your work No live contract or message handler expects the retired type.

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