0

几天前我的报告工作得很好,我不记得有任何改变..

但是,当我在“报告管理器”视图中运行报告时,我现在遇到了这个错误。

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

有小费吗

4

1 回答 1

4

Plainly, Dataset1's query isn't working. Firstly, check that the Stored Procedure radio button is selected in the Dataset Properties.

Running SQL Profiler and seeing what SQL is hitting the server might help.

Given that you have copied the query into SQL Server Management Studio and it works, it sounds like a permissions issue - that is, running it in SSMS under your account works, but it isn't working when the Reorting Services server runs it under its account.

Check the permissions of the Stored Procedure to see if the SSRS server account has the right permissions to execute the stored proc.

于 2012-12-11T00:18:30.343 回答