ALTER MESSAGE TYPE (Transact-SQL)
Changes the properties of a message type.
Transact-SQL Syntax Conventions
- message_type_name
-
The name of the message type to change. Server, database, and schema names cannot be specified.
- VALIDATION
-
Specifies how Service Broker validates the message body for messages of this type.
- NONE
-
No validation is performed. The message body may contain any data, or may be NULL.
- EMPTY
-
The message body must be NULL.
- WELL_FORMED_XML
-
The message body must contain well-formed XML.
- VALID_XML_WITH_SCHEMA = schema_collection_name
-
The message body must contain XML that conforms to a schema in the specified schema collection. The schema_collection_name must be the name of an existing XML schema collection.
Permission for altering a message type defaults to the owner of the message type, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.
When the ALTER MESSAGE TYPE statement specifies a schema collection, the user executing the statement must have REFERENCES permission on the schema collection specified.