Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定されたメッセージプロパティを SQL SMALLINT データ型で返します。
SMALLINT 型のプロパティ値。
メッセージプロパティ値が範囲外の場合は、SQL エラー SQLSTATE 22003 が発生します。
このプロパティは、メッセージの受信後からロールバックまたはコミットが行われるまでの間に読み込むことができます。ロールバックまたはコミットが行われた後で読み込むことはできません。
次の例では、メッセージを受信して、short 型プロパティ myshortproperty の値をデータベースサーバーメッセージウィンドウに出力します。
begin declare @msgid varchar(128); declare @prop smallint; set @msgid = ml_qa_getmessage( 'myaddress' ); set @prop = ml_qa_getshortproperty( @msgid, 'myshortproperty' ); message 'message property myshortproperty is set to ' || @prop; commit; end