SQL Flow Field Guide

ALTER SERVICE

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

changes service (no row flow)

What changes

Input
catalog
Output or change
catalog: service

Syntax at a glance

ALTER SERVICE service_name [ ON QUEUE [ schema_name . ]queue_name ] [ ( < opt_arg > [ , ...n ] ) ] [ ; ]

Work example

A Service Broker service needs a contract or queue mapping update.

Trace active dialogs and queued messages before changing the accepted contracts.

Check your work New lab dialogs use the intended queue and active conversations still complete.

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