我正在使用 Microsoft 提供的 External Activator 来监控服务代理队列消息。主队列的名称是“ReportQueueTarget”。我还设置了一个这样的通知队列:
CREATE QUEUE ReportExternalNotifyQueue
GO
-- create event notification service
CREATE SERVICE ReportExternalNotifyService
ON QUEUE ReportExternalNotifyQueue
(
[http://schemas.microsoft.com/SQL/Notifications/PostEventNotification]
)
GO
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
CREATE EVENT NOTIFICATION [ReportNotification]
ON QUEUE [ReportQueueTarget]
FOR QUEUE_ACTIVATION
TO SERVICE 'ReportExternalNotifyService','current database'
GO
这适用于我设置的两个环境。但是,对于我现在设置的这个新环境,消息成功到达主队列,但通知队列中没有任何显示。因此,外部激活器永远不会收到通知。什么可能导致这个问题?
谢谢!