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


Sending Event Notification service broker messages to remote server


Sending Event Notification service broker messages to remote server

Author
Message
ben.rosato
ben.rosato
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1013 Visits: 1566
I can capture notifications fine on a the local instance but I want to be able for my services to be able to receive events from other servers. I've set up a service on another server a I can initiate a conversation and send a message but the event notifications will not send to a remote service.

The event is set up with the SSB guid of the remote service.

CREATE EVENT NOTIFICATION DDL_EVENTS
ON SERVER
FOR DDL_EVENTS
TO SERVICE 'NotifyService', 'f18c2c64-8810-40f8-9509-a9aada110c42' ;

The route works.

CREATE ROUTE NotifyRoute
WITH SERVICE_NAME = 'NotifyService',
BROKER_INSTANCE = 'f18c2c64-8810-40f8-9509-a9aada110c42',
ADDRESS = 'TCP://SV0220SQLMON1:4022';

I could send the notifications to the local queue and then message them off to the remote service but that seems like an extra step.
ben.rosato
ben.rosato
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1013 Visits: 1566
I figured it out. If any one needs to do this, I can post some scripts. This is really a great way to capture events to a single location.
harsh-280401
harsh-280401
Grasshopper
Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)Grasshopper (22 reputation)

Group: General Forum Members
Points: 22 Visits: 46
Hi ,

I am trying to the same.
I want one master server to recieve event notifications from all child servers.
But it just doesn't seem to work.

Can you please post some scripts for the same?

Thanks ,

Harsh
ben.rosato
ben.rosato
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1013 Visits: 1566
I'll put something together for you.
ben.rosato
ben.rosato
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1013 Visits: 1566
Do you have anything working?
Matthew Bates
Matthew Bates
SSC Eights!
SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)

Group: General Forum Members
Points: 851 Visits: 662
Ben,

I'd be interested to see any scripts you might have. I'm trying to centralize event collection for a number of servers as well.

Thanks!
ben.rosato
ben.rosato
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1013 Visits: 1566
Matthew Bates (9/2/2009)
Ben,

I'd be interested to see any scripts you might have. I'm trying to centralize event collection for a number of servers as well.

Thanks!


Do you have service broker working at all?
Pei Zhu-415513
Pei Zhu-415513
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2470 Visits: 4365
Looking forward to seeing the scripts.
Matthew Bates
Matthew Bates
SSC Eights!
SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)SSC Eights! (851 reputation)

Group: General Forum Members
Points: 851 Visits: 662
ben.rosato (9/3/2009)
Matthew Bates (9/2/2009)
Ben,

I'd be interested to see any scripts you might have. I'm trying to centralize event collection for a number of servers as well.

Thanks!


Do you have service broker working at all?


Nothing yet. I'm starting from scratch.
Jorge Vinuales
Jorge Vinuales
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 Visits: 278
A bit late, I know, but do you have these scripts?

I'm pretty interested.

Thanks
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