SQL Flow Field Guide

CREATE BROKER PRIORITY

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

defines broker priority (no row flow)

What changes

Input
catalog
Output or change
catalog: broker priority

Syntax at a glance

CREATE 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 Service Broker conversation must receive a defined priority under queue pressure.

Match the priority rule to its contract, local or remote service, and conversation lifetime.

Check your work Only the intended conversation group matches the priority rule.

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