19Oct/110
Script for Ad-Hoc SSRS TimedSubscription Scheduling

Quick script to locate and execute SSRS timed subscriptions (useful for testing).
1. Execute the top (uncommented) part and identify which subscription you want to schedule.
2. Paste the SubscriptionId from that row in to the @id variable in the lower section
3. Run the entire lower (commented) section
DECLARE @ReportName VARCHAR(255) = 'Report Name' SELECT a.PATH ,b.SubscriptionID ,b.Description ,CAST(b.PARAMETERS AS XML) AS [PARAMETERS] ,b.LastRunTime ,b.LastStatus ,CAST(b.ExtensionSettings AS XML) AS [ExtensionSettings] FROM ReportServer.dbo.[CATALOG] a INNER JOIN ReportServer.dbo.[Subscriptions] b ON b.Report_OID = a.ItemID WHERE a.Name = @ReportName /* DECLARE @id varchar(260) = '' ,@Type VARCHAR(32) = 'TimedSubscription' EXEC [ReportServer].dbo.AddEvent @EventType=@Type, @EventData=@id */



