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

Queue is empty

$
0
0

I have created queue and service, but when i start timet to send message in queue, it is empty.
Why? What could be wrong?

CREATE PROCEDURE dbo.myProcedure
AS
RETURN 'test'

CREATE QUEUE [dbo].[myQueue] WITH STATUS = ON , RETENTION = OFF ,
ACTIVATION (  STATUS = ON , PROCEDURE_NAME = [dbo].[myProcedure], MAX_QUEUE_READERS = 1 , EXECUTE AS N'dbo'  ),
POISON_MESSAGE_HANDLING (STATUS = OFF)  ON [PRIMARY] 

CREATE SERVICE [myService]  AUTHORIZATION [dbo] 
ON QUEUE [dbo].[myQueue]([DEFAULT])


DECLARE @DialogHandle UNIQUEIDENTIFIER; BEGIN dialog CONVERSATION @DialogHandle FROM SERVICE myService TO SERVICE 'myService' ON CONTRACT [DEFAULT] WITH ENCRYPTION = OFF; BEGIN CONVERSATION TIMER (@DialogHandle) TIMEOUT = 1;

SELECT * from myQueue --is empty

--I can see the result in conversation endPoints:

SELECT * FROM sys.conversation_endpoints WHERE far_service='myService'

--what else should I check?

Thanks


Viewing all articles
Browse latest Browse all 461

Trending Articles



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