几天前,我的报告运行良好,我不记得有任何更改。
但是,当我在“报表管理器” View 中运行报表时,出现了此错误。
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'DataSet1'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
编辑:
好的,所以我确实在SSMS中尝试了SPROC,如下所示:
exec prc_RPT_Quota_Info 17221
并返回正确的结果:
SurveyNumber ID HoursRemaining FieldHours FEDSurveyName FieldEndDate FieldBeginDate SurveyStatusName ProjectName ProjectManager ClientName
17221 16226 -2195.75 NULL j41881 - Burial Preferences Survey - States 2012-09-10 06:00:00.000 NULL Complete 41881 Gibbs & Soell - Burial Preferences Survey Peter Gallagher BCC Public Affairs & Policy
有小费吗
最佳答案
显然,Dataset1的查询无法正常工作。首先,检查在“数据集属性”中是否选中了Stored Procedure
单选按钮。
运行SQL Profiler并查看什么SQL在服务器上运行可能会有所帮助。
假设您已将查询复制到SQL Server Management Studio中并且可以正常使用,这听起来像是权限问题-也就是说,在您帐户下的SSMS中运行该查询有效,但是当Reorting Services服务器在其帐户下运行该查询时,该查询不起作用帐户。
检查存储过程的权限,以查看SSRS服务器帐户是否具有执行存储过程的正确权限。
关于debugging - 我的SSRS报告在 “Report Manager” View 中引发此错误的可能原因是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13810282/