启用数据库的 Service Broker

--is_broker_enabled为0未启用,为1启用
SELECT name,is_broker_enabled FROM sys.databases WHERE name = 'DBNAME'


ALTER DATABASE DbName SET NEW_BROKER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE DbName SET ENABLE_BROKER;

posted @ 2016-05-19 12:02  落一叶而知秋  阅读(3097)  评论(0编辑  收藏  举报