我无法在 Sql Server 数据库上启用 Service Broker

问题描述 投票:0回答:0

当我尝试使用以下方式发送电子邮件时:

EXEC sp_send_dbmail

我收到错误信息:

Service Broker message delivery is not enabled in this database. Use the ALTER DATABASE statement to enable Service Broker message delivery. 

所以我正在尝试执行:

USE master;
GO
ALTER DATABASE [MyDatabaseName] SET ENABLE_BROKER;
GO

但是上面的语句正在无限运行,没有错误消息或超时。 当我运行以下语句时:

select name, is_broker_enabled from sys.databases

我可以看到 service-broker 仍然被禁用。

sql-server service-broker
© www.soinside.com 2019 - 2024. All rights reserved.