In the following example, a message is created, the long properties mylongproperty1 and mylongproperty2 are set, and the message
is sent to the address clientid\queuename:
begin
declare @msgid varchar(128);
set @msgid = ml_qa_createmessage();
call ml_qa_setlongproperty( @msgid, 'mylongproperty1', -12345678900987654321 );
call ml_qa_setlongproperty( @msgid, 'mylongproperty2', 12345678900987654321 );
call ml_qa_putmessage( @msgid, 'clientid\queuename' );
commit;
end