Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回 SQL BIT 数据类型形式的指定消息属性。
BIT 形式的属性值。
如果消息属性值超出范围,则会出现 SQL 错误 SQLSTATE 22003。
接收消息后就可以读取此属性,一直到执行回退或提交;执行回退或提交后就不能再读取此属性。
在下面的示例中,收到一条消息,并将布尔型属性 mybooleanproperty 的值输出到数据库服务器消息窗口:
begin declare @msgid varchar(128); declare @prop bit; set @msgid = ml_qa_getmessage( 'myaddress' ); set @prop = ml_qa_getbooleanproperty( @msgid, 'mybooleanproperty' ); message 'message property mybooleanproperty is set to ' || @prop; commit; end