reporting-services - 将 SSRS 报告导出到 Excel 失败

标签 reporting-services ssrs-2008

当尝试将 SSRS 报告导出到 Excel 时,我收到运行时错误。我查看了日志并看到以下内容: 错误:抛出 Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException:,报表服务器数据库内发生错误。这可能是由于数据库内的连接失败、超时或磁盘空间不足造成的。;

报表在报表管理器中显示良好,并且过去已成功运行。

该报告并不是很复杂,大约有 40 列宽。当我在 SSMS 中运行查询时,我得到了 27,628 条记录,并且运行需要 3 秒(同样,我是 SSMS)。该报告在报告管理器中的运行速度也相当快,并且将结果导出为 .scv 格式可以按预期进行。

如果需要任何其他信息来帮助解决此问题,请告诉我,我会提供。感谢您提前提供帮助!

此外,报告已设置为不超时。报告在 VS2010 中运行并按预期导出到 Excel。

最佳答案

您的连接可能超时。尝试通过以下方式更改超时长度:

1.使用文本编辑器(例如 Visual Studio、记事本)打开 rsreportserver.config。默认情况下,它托管在 C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer

2.更改“DatabaseQueryTimeout”的值。有效值范围为 0 到 2147483647。值 0 指定无限的等待时间,因此不建议使用。

3.保存文件,然后重新启动 Reporting Services 以应用更改。

http://msdn.microsoft.com/en-us/library/ms157273.aspx

关于reporting-services - 将 SSRS 报告导出到 Excel 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18148772/

相关文章:

reporting-services - 处理时的 SSRS ReportViewer nullreference 异常

reporting-services - 如何从SSRS中的字符串获取特定值

reporting-services - 是否可以单独安装SSRS报表管理器?

reporting-services - SSRS Report Builder 报告中的粗线

c# - 在 Reporting Services 2008 webservice 中调用渲染流时出错

c# Reporting Services -- ReportParameter 值不是字符串

reporting-services - 报表管理器数据源的数据库角色成员资格设置

reporting-services - 在SSRS中, “Internal”参数与 “hidden”参数有何不同?

sql-server - SSRS 报告 : How to limit the number of rows returned in a group

reporting-services - 您可以将网络驱动器映射到 SSRS 报告目录吗?