SQLServerCentral.com / Reporting Services / Reporting Services 2005 Administration / How to Send SSRS Reports(subscriptions) from SQL AGENT JOB STEP / Latest PostsInstantForum.NET v2.9.0SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comTue, 31 Mar 2015 16:30:49 GMT20RE: How to Send SSRS Reports(subscriptions) from SQL AGENT JOB STEPhttp://www.sqlservercentral.com/Forums/Topic1306784-162-1.aspxhttp://www.bidn.com/blogs/kylewalker/ssis/1915/how-to-match-your-subcription-names-with-its-job-idSome things I've learned researching this topic in sql 2008 r2. 1) ssrs scheduled tasks create a corresponding sqlagent job with a nasty guid name that is meaningless2) the bidn link above by Mr. Kyle Walker shows the query to retrieve and map the sqlagent guid name to your scheduled ssrs report. 3) putting all this information together with the msdb.dbo.sp_start_job, you can manage your scheduled reports within sql agent jobs with much flexibility.I'm not sure I'm going to like managing this set up though during deployment of a new ssrs report? We'll see. Tue, 12 Nov 2013 13:17:01 GMTBob GriffinRE: How to Send SSRS Reports(subscriptions) from SQL AGENT JOB STEPhttp://www.sqlservercentral.com/Forums/Topic1306784-162-1.aspxas you already have the subscription setup, I would remove the schedule from the T-SQL job which is used to run the subscription, then as step 2 of your load from oracle, issue a SP_START_JOB procedure call to run the subscription job.the script below should help you find the right GUID job name for the report.[code="sql"]SELECT U.UserName AS SubscriptionOwner, C.Path AS ReportPath, CONVERT(XML,S.ExtensionSettings) AS SubscriptionSettings, S.EventType AS SubscriptionType, CONVERT(XML,S.Parameters) AS ReportParameters, S.DeliveryExtension AS DeliveryMethod, Sc.Name AS ScheduleName, Rs.ScheduleIDFROM Subscriptions SINNER JOIN Users UON S.OwnerID = U.UserIDINNER JOIN Catalog CON S.Report_OID = C.ItemIDINNER JOIN ReportSchedule RSON S.SubscriptionID = RS.SubscriptionIDINNER JOIN Schedule ScON RS.ScheduleID = Sc.ScheduleIDORDER BY 1,2[/code]Mon, 28 May 2012 01:45:03 GMTanthony.greenHow to Send SSRS Reports(subscriptions) from SQL AGENT JOB STEPhttp://www.sqlservercentral.com/Forums/Topic1306784-162-1.aspxHi All,I have a sql agent job "LoadfromOracle" which loads data from oracle to sql server tables(Orders table, Marketing table ) everyday. This job runs everyday at 7:00 am (Avg Execution time is 1 hour), so completes at 8:00 am.I have a report named "daily report" which uses Orders table, Marketing table to fetch the required data. we had created subscription for this report ("daily report") and this report is send to executives everyday as an email attachment at 8:20 am. Problem : some times the sql agent job "LoadfromOracle" is taking more time(4-5) hours to complete data load into Orders table, Marketing table. So, without complete data into Orders table, Marketing table the report ("daily report") is using incomplete data and email is sent to executives with wrong/incomplete data at 8:20 am.My question : Can I include this report subscription(process of sending report as email) as a SQL AGENT JOB STEP in sql agent job "LoadfromOracle". ???? so that in sql agent job "LoadfromOracle" i havestep1: loading data from oracle to sql server step2: sending report to subscribers as an email attachmentFor step1 i will include OnFailureAction = "Quit the job reporting failure". By doing this i can be sure that unless the data load is completed, the report won't be sent to executives. and if step1 fails then step2(sending report) step will not be executed.Can any one give me advice on implementing this?? Thanks for your time!!Raj VardhanFri, 25 May 2012 12:53:39 GMTtinnusqlserver