The SQL Server Service Broker for the current database was not enabled

Source: Internet
Author: User

To restore one data to another server, an exception occurred:

the SQL Server Service Broker for the current database was not enabled, and as a result query notifications be not SUP  Ported. Please enable the Service Broker for this database if you wish to use notifications.

As follows:

Workaround:


Refer to the above steps, which can be set to true.
However, you may not be so successful when you click on the "OK" button, another exception is present:

How to solve it? No relationship, you can execute SQL statements in SQL Query Analyzer:

DECLARE @DBNameSYSNAMESET @DBName = 'Tutorial'  --' Your DB Name 'DECLARE @spid INTSELECT @spid = MIN(SPID) from [MASTER].[dbo].[sysprocesses] WHEREdbid= db_id(@DBName) while @spid  is  not NULLBEGIN    EXECUTE('KILL' + @spid)    SELECT @spid = MIN(SPID) from [MASTER].[dbo].[sysprocesses] WHEREdbid= db_id(@DBName) andspid> @spidENDEXECUTE('ALTER DATABASE'+ @DBName +'SET Enable_broker')--Disable_broker
Source Code

The SQL Server Service Broker for the current database was not enabled

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.