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

Report subscription using parameter Expand / Collapse
Posted Tuesday, January 28, 2014 6:14 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Thursday, March 12, 2015 11:37 AM
Points: 89, Visits: 358
Hi All,

I have a report that already has a subscription. The issue is that business users want to be able to choose their delivery date and time by themselves from a parameter. That is they want the scheduled date and time to be part of parameter list in the report for them to select when they want the report be delivered to them.
How can I deliver such scenario?


Post #1535684
Posted Wednesday, January 29, 2014 5:36 PM


Group: General Forum Members
Last Login: Friday, March 20, 2015 9:53 AM
Points: 198, Visits: 10,122
AFAIK this isn't possible within SSRS. The purpose of subscriptions is to have the report run on a given schedule without manual parameter inputs. If the users insist, you could possibly set up separate subscriptions for each user with that user's preferred schedule (or send it Monday to the list of folks who want it then, Tuesday to another list, etc.).

Post #1536142
Posted Thursday, January 30, 2014 5:06 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 7:11 AM
Points: 243, Visits: 2,814
As mentioned, you can let the users create their own subscriptions.
Post #1536258
Posted Friday, January 31, 2014 3:09 PM



Group: General Forum Members
Last Login: Wednesday, March 25, 2015 6:58 AM
Points: 488, Visits: 1,278
Well this got me to thinking - I mean this is probably a serious hack. A report query in SSRS can almost be similar to a stored proc, that is, you can do multiple things before before you finally produce your result set.

So, a subscription is basically a SQL agent job identified by a GUID. There is an sp_update_schedule stored proc that would allow you to manipulate a job schedule. I think as long as the service executing the SSRS report had the required permissions, all of the pieces that you would need to update a subscription job schedule from report params are probably there. Not for the faint of heart - you have to understand the table schema of the ReportServer database and how to tie that to the SQL Agent job, etc.

Wouldn't be easy, but it might be possible.

Post #1536998
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse