每当我尝试在两个不同的 SQL Server 服务器之间发送 SQL Service Broker 消息时,我的 sys.transmission_queue 表中都会出现此错误。(即数据库在两台不同的物理机器上)
Dialog security is unavailable for this conversation because there is no security
certificate bound to the database principal (Id: 5).
Either create a certificate for the principal, or specify ENCRYPTION = OFF
when beginning the conversation
当此错误涉及“数据库主体”时,它指的是什么?(“主”数据库?dbo 用户?)我使用了 CREATE CERTIFICATE 命令,备份了证书并使用来自第一台服务器的备份 .cer 文件在另一台服务器上创建了一个相同命名的证书,但我一直得到这个信息。
任何帮助将不胜感激,让我指出正确的方向。我一定遗漏了一些明显的东西。
仅供参考,在我的开发环境中,启动数据库和目标数据库都位于同一物理服务器和同一 SQL 实例上,一切正常。