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
Author
Message
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: Wednesday, July 9, 2014 9:51 AM
Points: 80, Visits: 332
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
Post #1535684
Posted Wednesday, January 29, 2014 5:36 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 4:33 PM
Points: 179, Visits: 7,365
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
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 @ 5:09 AM
Points: 243, Visits: 2,699
As mentioned, you can let the users create their own subscriptions.
Post #1536258
Posted Friday, January 31, 2014 3:09 PM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: 2 days ago @ 6:50 AM
Points: 487, Visits: 1,229
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