sys.conversation_endpoints build up

5 pts.
Tags:
SQL Server 2008
SQL Server 2008 R2
SQL Server security
SQL Service Broker
 It Seems that there is a lot of problems with SB cleanup? I have SQL 2008 r2 running on two different servers. The target system processes the millions of records in the queues but will not clean out the sys.conversation_endpoints, or the sys.conversation_endpoints tables. This is part of the activation proc that is run on the target server. BEGIN     BEGIN TRY         SET NOCOUNT ON;         DECLARE @RecvReqDlgHandle UNIQUEIDENTIFIER,  @RecvReqMsg VARBINARY(MAX), @RecvReqMsgName sysname;         BEGIN TRANSACTION;             WAITFOR ( RECEIVE TOP(1) @RecvReqDlgHandle = conversation_handle, @RecvReqMsg = message_body, @RecvReqMsgName = message_type_name             FROM AccountDataQueue), TIMEOUT 1000;             IF @RecvReqDlgHandle IS NOT NULL AND @RecvReqMsgName = N'IPGServiceBroker_MT'             BEGIN                 DECLARE @SBMsgXML XML = CAST(@RecvReqMsg AS XML);                 EXEC SomeDB.dbo.InserRecordSB @SBMsgXML;             END             ELSE IF @RecvReqDlgHandle IS NOT NULL  AND @RecvReqMsgName = 'http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog'             BEGIN                 END CONVERSATION @RecvReqDlgHandle             END         COMMIT TRANSACTION;     END TRY     BEGIN CATCH Please help

Software/Hardware used:
SQL 2008 r2, Service Broker

Answer Wiki

Thanks. We'll let you know when a new response is added.

There’s nothing wrong with Service Broker.

Are you doing an END CONVERSATION on the sending side as well? Service Broker requires a two phase commit to end the conversation. You should have an activated stored procedure on the sending queue on the sending server which closed the conversations when messages arrive in the sending queue.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following