zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported.

DatabaseserverSQL for The not and is
2023-09-27 14:21:30 时间

当Insus.NET尝试解决此问题《When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance.http://www.cnblogs.com/insus/p/5622792.html 时,

又出现另外一个警示:

 
解决方法是,Enable Service Broker on the database:

 

ALTER DATABASE [DataBase Name] SET ENABLE_BROKER WITH ROLLBACK IMMEDIATE
Source Code