Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Sets the expiration time for a message.
You can read this header after a message is received and until a rollback or commit occurs; after that you cannot read it.
In the following example, a message is created so that if it is not delivered within the next 3 days it expires:
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' );