Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Disabling Service Broker.


Disabling Service Broker.

Author
Message
WangcChiKaBastar
WangcChiKaBastar
SSC-Enthusiastic
SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)

Group: General Forum Members
Points: 105 Visits: 485
I have two service broker applications on one instance of database.
One sends/recieve messages locally and other one sends/recieve messages to remote server.

I wanted to disable the Remote service broker so that sender can no longer send messages to the remote queue
I disabled the Queueue but I still see the Reciever is still getting messages and tables getting updated as a result.

I want to stop the Remote Sender queue and I dont want transmission_queue to pile up.
Nils Gustav Stråbø
Nils Gustav Stråbø
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2013 Visits: 3575
If you have disabled the queue on the target, then there is no way messages can be delivered to it. How did you disable it?

The only way to prevent transmission_queue to pile up on the initiator is to stop sending messages to the remote service with the disabled queue.
WangcChiKaBastar
WangcChiKaBastar
SSC-Enthusiastic
SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)

Group: General Forum Members
Points: 105 Visits: 485
Thanks for your reply.

I think my post was bit confusing or I didnt explain it correctly.

I want to Stop sending messages to the local Queue that sends it to the remote service. When I disable the Queue on the remote server (right click disable), the messages dont flow anymore and transmission_queue on the Sender starts accumulating. (understood)

My question is when I disable the SENDER queue (right click disable) and keep the RECIEVE (remote) Queue ON....I see the messages still flowing through the Disabled SENDER queue to the ON Remote Queue and the tables getting updated through activation proc on the Remote Server.

Why is that ? can a DISABLED Sender Queue process OUT bound messages ?

I can always disable Trigger to stop sending messages to the Sender Queue...but I want to understand why Disabling the queue doesnt do that...
Nils Gustav Stråbø
Nils Gustav Stråbø
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2013 Visits: 3575
The initiator (sender) queue is not involved when you send a message to a target, so disabling it will not prevent sending messages from the initiator to the target. It will only prevent messages sent from the target to be received by the initiator.

If you want to stop sending messages to the remote server, you need to removed the T-SQL code that actually sends them.
WangcChiKaBastar
WangcChiKaBastar
SSC-Enthusiastic
SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)

Group: General Forum Members
Points: 105 Visits: 485
ok. Thanks for explaining that.
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