SQL Flow Field Guide

DROP SERVICE

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

removes service (no row flow)

What changes

Input
catalog
Output or change
catalog: service

Syntax at a glance

DROP SERVICE service_name [ ; ]

Work example

A Service Broker service is retired after its queue and conversations are handled.

Check active dialogs, queue messages, routes, contracts, and application senders first.

Check your work No active sender or dialog targets the service and message disposition is recorded.

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