Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Report subscription using parameter


Report subscription using parameter

Author
Message
eobiki10
eobiki10
SSC Journeyman
SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)SSC Journeyman (93 reputation)

Group: General Forum Members
Points: 93 Visits: 369
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
doug.brown
doug.brown
SSC Veteran
SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)SSC Veteran (268 reputation)

Group: General Forum Members
Points: 268 Visits: 12404
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
Scott Murray-240410
Scott Murray-240410
SSC Veteran
SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)SSC Veteran (249 reputation)

Group: General Forum Members
Points: 249 Visits: 3067
As mentioned, you can let the users create their own subscriptions.
Ed Zann
Ed Zann
Mr or Mrs. 500
Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)Mr or Mrs. 500 (505 reputation)

Group: General Forum Members
Points: 505 Visits: 1391
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.



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