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

Subscribing to BROKER_QUEUE_DISABLED for entire server?

$
0
0

Is it possible to subscribe to BROKER_QUEUE_DISABLED for all queues on the server regardless of database?  If so, what is the correct TSQL syntax for the registration command?

I tried this but received an error:

CREATE EVENT NOTIFICATION QueueDisabledNotification
    ON SERVER
WITH FAN_IN
    FOR BROKER_QUEUE_DISABLED
    TO SERVICE 'DisabledQueueNotificationService', 'current database';

"The specified event type(s) is/are not valid on the specified target object."

sql 2014

Viewing all articles
Browse latest Browse all 461

Trending Articles