The SQL Server Service Broker for the current database is not enabled
Posted Insus.NET
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The SQL Server Service Broker for the current database is not enabled相关的知识,希望对你有一定的参考价值。
把一个数据恢复至另一个服务器上,出现了一个异常:
The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications.
解决方法:
参考上面的步骤,可以设置为True。
但是,你也许没有那么顺利,当你点击"OK"铵钮时,会现另外一个异常:
那怎样解决呢?没有关系,可以在SQL查询分析器中执行SQL语句:
DECLARE @DBName SYSNAME SET @DBName = \'Tutorial\' --\'Your DB Name\' DECLARE @spid INT SELECT @spid = MIN(spid) FROM [MASTER].[dbo].[sysprocesses] WHERE dbid = DB_ID(@DBName) WHILE @spid IS NOT NULL BEGIN EXECUTE (\'KILL \' + @spid) SELECT @spid = MIN(spid) FROM [MASTER].[dbo].[sysprocesses] WHERE dbid = DB_ID(@DBName) AND spid > @spid END EXECUTE(\'ALTER DATABASE \'+ @DBName +\' SET ENABLE_BROKER\') --DISABLE_BROKER
以上是关于The SQL Server Service Broker for the current database is not enabled的主要内容,如果未能解决你的问题,请参考以下文章
安装MYSQL8.0出现的The service already exists!The current server installed:
The service already exists! The current server installed: D:mysqlmysql-5.7.30-winx64inmysqld My
The service already exists! The current server installed: D:mysqlmysql-5.7.30-winx64inmysqld My(代码片
Tomcat服务器提示:The server is temporarily unable to service your request due to maintenance downtime or
Creating a keytab file for the Kerberos service account (using the ktutil command on Linux)