SQL Flow Field Guide

ALTER ROUTE

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

changes route (no row flow)

What changes

Input
catalog
Output or change
catalog: route

Syntax at a glance

ALTER ROUTE route_name WITH [ SERVICE_NAME = 'service_name' [ , ] ] [ BROKER_INSTANCE = 'broker_instance' [ , ] ] [ LIFETIME = route_lifetime [ , ] ] [ ADDRESS = 'next_hop_address' [ , ] ] [ MIRROR_ADDRESS = 'next_hop_mirror_address' ] [ ; ]

Work example

A Service Broker route needs a new address or broker instance.

Check the destination service, network path, lifetime, and competing routes before changing it.

Check your work A lab dialog reaches the intended broker instance through the updated route.

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