.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
Post a Comment