.net - Extracting messages from SQL Server Service Broker -


how extract messages sql server service broker please? i'm using nservicebus.

i have messages in sql server service broker queue i'm not sure how process them.

many thanks,

this code you. declare @messagetype sysname declare @conversationhandle uniqueidentifier declare @handle uniqueidentifier declare @messagebody nvarchar(max)

declare @conversation_group_id uniqueidentifier ;  waitfor( conversation group @conversation_group_id      [updatereceivequeue]      );  waitfor (       receive top(1)             @messagetype=message_type_name,             @messagebody=message_body,             @conversationhandle=conversation_handle             [updatereceivequeue] conversation_group_id = @conversation_group_id ),timeout 2000;      print @messagebody 

please use link more information.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -