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