T-SQL for SSRS Data-Driven Subscriptions
-- Find the Subscription ID based on the Description -- Subscription ID: 8BD6138A-9859-4F79-9394-41C50ED2FC22 (DEV) SELECT * FROM ReportServer.dbo.Subscriptions WHERE [Description] = 'Exception Policy Correction Plan Email'; -- Find the job created to run the data-driven subscription -- Look for the job step that contains the subscription ID -- job_id = '5A25474E-7014-4533-8D58-4C5971BF9776' SELECT * FROM msdb.dbo.sysjobsteps WHERE command LIKE '%8bd6138a-9859-4f79-9394-41c50ed2fc22%' /* Job Step command: exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription' , @EventData='8bd6138a-9859-4f79-9394-41c50ed2fc22' --<<< Subscription ID */