SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSRS 2008 Snapshots for data driven subscription


SSRS 2008 Snapshots for data driven subscription

Author
Message
MattGauch
MattGauch
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 42
I have a business unit client who needs to produce 5 reports each month for each of 120 users (total 600 individual report instances). The user is a parameter to the reports, and each user can see only his data, or that in levels below him in the hierarchy. Because each report's data is organized in a hierarchical fashion, the roll-up/drill-down interactive functionality that you get with the SSRS report viewer is critical. My business unit client has set up a data driven subscription to generate the reports, but the DDS puts out the individual reports to an Excel file on a network file share, so we lose the roll-up/drill-down functionality. If each user runs his 5 reports interactively, 1) each report takes about 5 - 10 minutes to gather its data and render, so the performance is unacceptable; and 2) how can we limit each user to running each report for only HIS data? Is there any way we can use a data-driven subscription to produce snapshots of each report on a scheduled basis, so that each user can then just pull up the most recent snapshot of HIS reports in the SSRS report viewer, so that he still has roll-up/drill-down?
eric.muller
eric.muller
SSC Eights!
SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)SSC Eights! (844 reputation)

Group: General Forum Members
Points: 844 Visits: 1378
Since your query already seems to take into account the user, I think you can use the @UserID built-in field in the SSRS report to populate an internal parameter (let's call it "@DomainName"); you may need to trim that username to remove the domain portion, depending on what your dataset looks like.

Then you can pass that @DomainName to the query like you seem to be doing now just in the subscription. Make sure to set @DomainName first in the parm list so it's the first thing that populates when a user hits the report, and then you can filter the other parms and/or data automatically.

Hope that helps or at least points you in a direction. I'm not sure about the snapshot stuff but I think that's also possible.

Cheers,
Eric
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search