SQL Flow Field Guide

ALTER BROKER PRIORITY

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

changes broker priority (no row flow)

What changes

Input
catalog
Output or change
catalog: broker priority

Syntax at a glance

ALTER BROKER PRIORITY ConversationPriorityName FOR CONVERSATION { SET ( [ CONTRACT_NAME = {ContractName | ANY } ] [ [ , ] LOCAL_SERVICE_NAME = {LocalServiceName | ANY } ] [ [ , ] REMOTE_SERVICE_NAME = {'RemoteServiceName' | ANY } ] [ [ , ] PRIORITY_LEVEL = { PriorityValue | DEFAULT } ] ) } [;]

Work example

A broker priority rule needs a narrower conversation match or new priority.

Compare the rule with service, contract, local or remote service, and conversation group names.

Check your work Only the intended conversation class receives the changed priority.

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