Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
设置消息到期时间。
可以在收到消息后以及发生回退或提交之前读取此标头;之后则无法读取。
在下面的示例中,创建一条消息,如果在随后的 3 天内未传送,则该消息到期:
begin declare @msgid varchar(128); set @msgid = ml_qa_createmessage(); call ml_qa_setexpiration( @msgid, dateadd( day, 3, current timestamp ) ); call ml_qa_settextcontent( @msgid, 'time-limited offer' ); call ml_qa_putmessage( @msgid, 'clientid\queuename' ); commit; end