Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Running a report multiple times Expand / Collapse
Author
Message
Posted Thursday, May 23, 2013 8:17 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Yesterday @ 4:35 AM
Points: 702, Visits: 2,172
Hi,

So... I have a report that has a dataset that looks something like this:

AccountManager, Product, Value

The report has a variable called @AccountManager and what i want to do is call the report multiple times with a different @AccountManager each time, collate the reports into one Excel workbook and then mail that off to a list of recipients.

Can that be achieved with SSRS?

Thanks in advance for any help.


Simon




MCSA: SQL Server 2012
Follow me on Twitter: @WazzTheBadger
LinkedIn Profile: Simon Osborne
Post #1456030
Posted Thursday, May 23, 2013 8:44 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Yesterday @ 4:35 AM
Points: 702, Visits: 2,172
Hi,

Turns out I've answered my own question thanks to this thread: http://stackoverflow.com/questions/12526795/print-an-ssrs-report-multiple-times-based-on-a-value-entered

I've used a matrix with a dataset called AccountManager then used a sub report within the matrix to run the original report i wrote....

Hope this helps someone else.

Thanks,


Simon




MCSA: SQL Server 2012
Follow me on Twitter: @WazzTheBadger
LinkedIn Profile: Simon Osborne
Post #1456040
Posted Friday, May 24, 2013 3:22 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 8:06 PM
Points: 36,786, Visits: 31,243
Wouldn't a query with a GROUP BY/ROLLUP have been easier?

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1456699
Posted Tuesday, May 28, 2013 2:04 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Yesterday @ 4:35 AM
Points: 702, Visits: 2,172
Hi Jeff,

I do actually make use of a GROUP BY and a ROLLUP in the query behind the report but it's a full A4 page chart, not a table of data.

Thanks for the suggestion tho.

Thanks,


Simon




MCSA: SQL Server 2012
Follow me on Twitter: @WazzTheBadger
LinkedIn Profile: Simon Osborne
Post #1457220
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse