Exception Message: The activated proc [dbo].[storedprocedure_name] running on queue [QUEUE_NAME] output the following: 'The server principal "sa" is not able to access the database "AnotherDBName" under the current security context.' SOLUTION: The problem is that the activation execution context is trusted only in the database, not in the whole server, like other stored procedures or DB. So when the activated SP calls another SP located in the other DB, the above exception will occur. The simplest solution is to mark the database [SERVICE PROGRAM RUNNING ON IT] as trustworthy. ALTER DATABASE [DBNAME] SET TRUSTWORTHY ON 引自:【SSB】Activation Execution Context
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
上一篇: 字符串分解
下一篇: 全库查找:在所有表中查询某个值