谢谢,塞纳
while(1=1) begin waitfor ( receive top(1) conversation_group_id from dbo.yourQueue; if (@@rowcount = 0) begin break; end ),timeout 1000; end