Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回新消息的消息 ID。
新消息的消息 ID。
此存储过程用于创建消息。消息创建后,即可将内容、属性和标头与此消息关联,然后将其发送。
可使用以 ml_qa_set 开头的任何 QAnywhere 存储过程来关联内容、属性和标头。例如,使用 ml_qa_setbinarycontent(或 ml_qa_settextcontent)创建二进制(或文本)消息。
以下示例创建一条消息,设置该消息内容,然后将该消息发送到地址 clientid\queuename:
begin declare @msgid varchar(128); set @msgid = ml_qa_createmessage(); call ml_qa_settextcontent( @msgid, 'some content' ); call ml_qa_putmessage( @msgid, 'clientid\queuename' ); commit; end