SQL Flow Field Guide

SEND

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

enqueues a message

What changes

Input
message body expression, conversation handles
Output or change
target service queue

Syntax at a glance

SEND ON CONVERSATION [(]conversation_handle [,.. @conversation_handle_n][)] [ MESSAGE TYPE message_type_name ] [ ( message_body_expression ) ] [ ; ]

Work example

An application needs to send one message over an open broker conversation.

Check the conversation handle, message type, payload validation, and transaction outcome.

Check your work The target queue receives the valid lab message once and rejects an invalid payload.

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