The current database is not enabled SQL Server Service Broker, so the query notification is not supported. If you want to use notifications, enable Service Broker for this database

solution:

ALTER DATABASE DatabaseName SET NEW_BROKER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE Databasename SET ENABLE_BROKER;

 

Implementation of the above two statements

SELECT is_broker_enabled FROM sys.databases WHERE name = 'DBNAME'

 

View is_broker-enabled as 1, OK

Guess you like

Origin www.cnblogs.com/zhang1f/p/11085382.html