Clean up SSB Message Queue

The following SQL script is used to clean up the specified SSB message queue, QUEUE_NAME.
***
declare @conversationHandle uniqueidentifier
while exists (select 1 from QUEUE_NAME)
begin
 RECEIVE top(1)  
  @conversationHandle=conversation_handle 
        FROM QUEUE_NAME
 End Conversation @conversationHandle
end

*** Key words ***
SQL Server 2005, Service Broker, Message Queue




相关文章:

  • 2021-08-13
  • 2021-04-14
  • 2022-01-08
  • 2021-09-20
  • 2022-01-13
  • 2021-12-18
  • 2022-12-23
  • 2022-01-23
猜你喜欢
  • 2021-12-04
  • 2021-11-15
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-10-10
相关资源
相似解决方案