I have been given the task of updating some of our older reports from our task system now that we have access to SSRS 2008 and the database has been migrated to SQL Server 2008 R2. I have found one that pulls data in the format shown below (You select a specific month for a specific year)
The two tables the data is pulled from are:
To clarify, in the above "for a parameter month" means any that were raised in that month and fit the other criteria. Also by "parameter" I mean a param passed to the existing stored procedure.
Currently the stored procedure generates each of the above into a temp table then LEFT JOINs them against the officer list to produce the data for the report.
The end result of the SP where it selects the data from the temp tables is shown below
My question is: How can I do this more efficiently?
Can I get more out of SSRS and have it doing more for me? Can I reformat the SP to use less or no temp tables? It just doesn't feel like a temp table for every field in the report is the best way to go about it, but trying to reformat it has resulted in nothing even close each time I have tried.
Let me know if any further information is required.
asked Jul 19 '12 at 06:22 AM in Default
Yes, definitely. I generally prefer formatting, Running Totals, SUM etc. to be done in Reporting Services. Since there is not much information I have and to work on Reporting Services is not possible for me at the moment. I cannot help much in this regard.
Again Yes. Seems like you can handle it all in one SELECT with the trick of using COUNT with CASE statements
answered Jul 19 '12 at 07:28 AM