3
我有一个艰难的一天试图将潜在的问题与此一SSRS传递报表参数
我有用户输入信息的形式进行解码。这些信息是通过URL传递到SSRS
我收到错误
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for data set 'Report'. (rsErrorExecutingCommand)
Must declare the scalar variable "@ReportType". Must declare the scalar variable "@StoreNum". Must declare the scalar variable "@ReportType". Must declare the scalar variable "@StoreNum".
查询是这样的
IF @ReportType = 'RE'
BEGIN
exec proc_Report_RETaxInvoices_InterActive @StoreNum, @StartDate, @EndDate, @TaxId, @BusinessName, @Attention, @LocatedIn, @Street, @AdditionalAddress, @City, @State, @PostalCode
END
ELSE IF @ReportType = 'RY'
BEGIN
exec proc_Report_ARTaxInvoices_InterActive @StoreNum, @StartDate, @EndDate, @TaxId, @BusinessName, @Attention, @LocatedIn, @Street, @AdditionalAddress, @City, @State, @PostalCode
END
我的报告参数看起来像这样 URL是漫长而令人讨厌但看起来有效
http://<SECRET>/ReportServer/Pages/ReportViewer.aspx?%2fSubway%2fAccounting%2fAccounting%2fTax+Report+Interactive&rs:Command=Render&rc:Parameters=false&ReportType=RE&StoreNum=25159&StartDate=11%2F1%2F2012&EndDate=11%2F1%2F2012&TaxId=1&BusinessName=1&Attention=1&LocatedIn=1&Street=1&AdditionalAddress=1&City=1&State=1&PostalCode=1
注意
&ReportType=RE&StoreNum=25159
是在查询字符串
当我运行从SSRS BIDS环境中的查询编辑器的报告,结果集返回。
所以我在此错误
我只是回来后相同的答案。谢谢。 – Mike