Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

Conversation group id question

$
0
0

HI

I have an example ( see below ).

I expect to have all messages sent using this code to have the same group id but they are all different. what I am doing wrong?

Leonid.

DECLARE

@conversationHandle uniqueidentifier

DECLARE @usergroup uniqueidentifier

select @usergroup = uid from bvuser where userid = 1

select

@usergroup

Begin

Transaction

BEGIN

DIALOG @conversationHandle

FROMSERVICE [BvMainResponseService]

TOSERVICE'BvMainService'

ONCONTRACT [BvMainContract]

WITH RELATED_CONVERSATION_GROUP = @usergroup;

-- Send a message on the dialog

SEND

ONCONVERSATION @conversationHandle

MESSAGETYPE [BvTaskMsg]

(

N'Test')

commit

 

 


Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>