I have a report with two data sources. There is not anything complicated about my report, but I do have 18 Report Parameters. The report takes a good 5 minutes to generate. When I performed a SQL trace, the first query is sent to the server repeatedly, (this is the slow-down) whereas the the other query is sent just once. Why is it doing this? Report is attached.
Thanks!
If I understand correctly, by the two queries, you mean the two SqlDataSource(Actual & Budget) and their SelectCommand queries, is that correct?
The Actual data source is used a couple of times in the report and that is why the query is executed multiple times. There are 4 tables inside the report, and 3 of them are set to the Actual data source, plus the Report itself also being set to that data source component. The group section itself seems to be a static group section because there is no grouping field for that group.
With that being said, I believe that you have two approaches here which could improve the performance: