Has anyone run into this using Service Broker queues. I'm doing the following in a activation SP. WAITFOR (RECEIVE TOP (1000)
queuing_order
, conversation_handle
, message_type_name
, CONVERT(XML, message_body) as XMLMessage
FROM dbo.ReceiveStreamingOrderStatusResponse
INTO @tableMessages), Timeout 5000
Somehow this code is giving us an issue, it's running a bit slow in fact if I just select top 10 to the queue it hangs but when I do a top 100 it does not hang. I looked online if anyone else is having a problem but did not see much. It's SQL Server 2005. Thanks.
↧