SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


not able to see messages in the queue


not able to see messages in the queue

Author
Message
SatishAyyar
SatishAyyar
SSChasing Mays
SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)SSChasing Mays (617 reputation)

Group: General Forum Members
Points: 617 Visits: 520
Hi guys,

I created a queue as in the query below....but I am not able to see the messages in the queue...

CREATE MESSAGE TYPE MyMessage
VALIDATION = WELL_FORMED_XML;

CREATE CONTRACT MyContract
(MyMessage SENT BY ANY );


CREATE QUEUE MySendingQueue
WITH
STATUS=ON
,RETENTION=OFF;


CREATE QUEUE MyReceivingQueue
WITH
STATUS=ON
,RETENTION=OFF;

CREATE SERVICE MySendingService
ON QUEUE MySendingQueue
(MyContract);


CREATE SERVICE MyReceivingService
ON QUEUE MyReceivingQueue
(MyContract);

DECLARE @handle uniqueidentifier
BEGIN DIALOG CONVERSATION @handle
FROM SERVICE MySendingService
TO SERVICE 'MyReceivingService'
ON CONTRACT MyContract;

SEND ON CONVERSATION @handle
MESSAGE TYPE MyMessage
('<message>hello world</message>')

END CONVERSATION @handle

SELECT * FROM dbo.MySendingQueue
Nils Gustav Stråbø
Nils Gustav Stråbø
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2427 Visits: 3575
If the message fails to be sent to the receiving service, you'll find it in sys.transmission_queue along with a error describing why it couldn't be sent.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search