ALTER MESSAGE TYPE
changes message type (no row flow)
What changes
- Input
- catalog
- Output or change
- catalog: message type
Syntax at a glance
ALTER MESSAGE TYPE message_type_name VALIDATION = { NONE | EMPTY | WELL_FORMED_XML | VALID_XML WITH SCHEMA COLLECTION schema_collection_name } [ ; ]
Work example
A Service Broker message type needs a validation rule change.
Compare the new validation rule with every sender, receiver, and queued message format.
Check your work Valid payloads still pass and a malformed test payload is rejected.
Open Microsoft Learn for full syntax, permissions, and details for your version.