SQL Flow Field Guide

ALTER QUEUE

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

changes queue (no row flow)

What changes

Input
catalog
Output or change
catalog: queue

Syntax at a glance

ALTER QUEUE <object> queue_settings | queue_action [ ; ]

Work example

A Service Broker queue needs an activation, retention, or status update.

Check queue depth, poison-message handling, execution context, and the activation procedure's transaction behavior.

Check your work The queue consumes a lab message once and failed work does not create repeated activation.

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