Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
发送消息。
指定的消息 ID 必须是先前使用 ml_qa_createmessage 创建的消息 ID。只有在调用 ml_qa_putmessage 之前与该消息 ID 关联的内容、属性和标头才能随该消息发送。调用 ml_qa_putmessage 之后添加的信息均被忽略。
消息必须在提交之后才能实际排队等候发送。
下例中,创建一条含有内容 'a simple message' 的消息,然后将其发送到地址 clientid\queuename:
begin declare @msgid varchar(128); set @msgid = ml_qa_createmessage(); call ml_qa_settextcontent( @msgid, 'a simple message' ); call ml_qa_putmessage( @msgid, 'clientid\queuename' ); commit; end