SQL Flow Field Guide

CREATE ROUTE

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

defines route (no row flow)

What changes

Input
catalog
Output or change
catalog: route

Syntax at a glance

CREATE ROUTE route_name [ AUTHORIZATION owner_name ] WITH [ SERVICE_NAME = 'service_name', ] [ BROKER_INSTANCE = 'broker_instance_identifier' , ] [ LIFETIME = route_lifetime , ] ADDRESS = 'next_hop_address' [ , MIRROR_ADDRESS = 'next_hop_mirror_address' ] [ ; ]

Work example

A Service Broker dialog needs a route to a named service and broker instance.

Compare address, broker instance, lifetime, and network path with the receiving service configuration.

Check your work A lab dialog resolves to the intended broker instance and not a default route.

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