我目前无法从 SSRS 通过电子邮件发送有关 Server 2012 上新安装的 SQL Server 2012 的基于时间的订阅报告。
我在 SSRS 日志文件中收到以下错误
schedule!WindowsService_5!dc4!10/14/2013-10:01:09:: i INFO: Handling Event TimedSubscription with data 1a762da1-75ab-4c46-b989-471185553304. library!WindowsService_5!dc4!10/14/2013-10:01:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.; library!WindowsService_5!dc4!10/14/2013-10:01:09:: w WARN: Transaction rollback was not executed connection is invalid schedule!WindowsService_5!dc4!10/14/2013-10:01:09:: i INFO: Error processing event 'TimedSubscription', data = 1a762da1-75ab-4c46-b989-471185553304, error = Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Invalid object name 'ReportServerTempDB.dbo.ExecutionCache'.
数据库是从 SQL 2008 迁移的,这是由第三方完成的,我不确定是否忽略了某些内容。
任何帮助将不胜感激。
谢谢。
戴恩
最佳答案
此帖子似乎可以解决您的问题。
http://www.sqlservercentral.com/Forums/Topic553765-147-1.aspx
在发布错误消息之前,请先进行一些研究。
来自链接 ” 经过一番惊愕之后,我发现了一个引用无效对象的触发器。 ReportServer 表 Schedule 上的触发器 [Schedule_UpdateExpiration] 中包含有问题的引用。在测试中,我更改了此触发器以引用正确的报表服务器 tempdb,现在订阅似乎工作正常。到目前为止,我还没有发现其他任何损坏。”
并且
“如果有人正在寻找快速答案,那么我是这样做来解决我的问题的:
- 更新了 dbo.schedule 上的触发器以引用正确的 tempdb。
- 将所有存储过程及其权限编写到新查询中,然后用新实例“查找并替换”旧 tempdb 的所有实例。 ”
关于sql - SSRS - 已重命名 TempDB,现在订阅报告不再通过电子邮件发送,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19361121/