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])SELECT * FROM sys.conversation_endpoints WHERE far_service='myService'
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:--what else should I check?
Thanks