Report subscription using parameter

  • 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?

    Thanks

    EO

  • 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.).

    Doug

  • As mentioned, you can let the users create their own subscriptions.

  • 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.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply