SSRS - 运行存储过程时出现严重错误消息

发布于 2024-09-16 23:38:15 字数 433 浏览 8 评论 0原文

我有一个运行存储过程的报告,该存储过程需要大约一个小时才能运行。

大约 30 分钟后,我在报告正文上收到此错误消息:

An error has occurred during report processing.
Query execution failed for data set 'DEV'.
A severe error occurred on the current command. The results, if any, should be discarded. Operation cancelled by user. 

当我从 SQL Server Management Studio 运行相同的存储过程时(使用与报告运行相同的登录凭据),该存储过程运行良好。

有什么想法可能导致这种情况吗?我尝试增加报告上的超时值,但这没有帮助。

I have a report that runs a stored procedure that takes about an hour to run.

After about 30 minutes I get this error message on the report body:

An error has occurred during report processing.
Query execution failed for data set 'DEV'.
A severe error occurred on the current command. The results, if any, should be discarded. Operation cancelled by user. 

The same stored procedure runs fine when I run it from SQL Server management studio (with the same login credentials the report runs under).

Any ideas what could be causing this? I tried increasing the timeout value on the report but that didn't help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

迷乱花海 2024-09-23 23:38:15

这听起来像是超时。我建议您不要将 SSRS 报告基于需要很长时间才能运行的存储过程。您可以安排一项日常作业来填充包含此报告数据的表(或多个表)并将报告指向此表。这样就不必每次都重新计算数据。

This just sounds like a timeout. May I suggest you don't base a SSRS report on a stored proc that takes so long to run. You could schedule a daily job to populate a table (or tables) containing this report data and point the report at this table. That way it doesn't have to recalculate the data every time.

嘿咻 2024-09-23 23:38:15

您可以在 SQL Server 安装目录中找到日志。示例:C:\Program Files\Microsoft SQL Server\MSRS10.REPORTING\Reporting Services\LogFiles

You can find the logs in your SQL Server installation directory. example: C:\Program Files\Microsoft SQL Server\MSRS10.REPORTING\Reporting Services\LogFiles

提笔落墨 2024-09-23 23:38:15

检查报告的连接字符串。当我使用格式错误的连接字符串时,出现此错误。即当我应该有“Data Source=”时我有“Server=”。

Check your connection string for the report. I got this error when I had used a malformed connection string. i.e. I had "Server=" when I should have had "Data Source=".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文