简体   繁体   English

如何判断SSRS数据驱动订阅何时在SQL Server 2014中完成运行

[英]How to tell when a SSRS Data Driven Subscription has finished running in SQL Server 2014

I have a report running against a Data Driven subscription in SSRS. 我有一个针对SSRS中的数据驱动订阅运行的报告。 The subscription runs a report and produces PDFs - about 1000 of them. 订阅运行一个报告并生成PDF(大约1000个)。 The process takes about 2 minutes to complete. 该过程大约需要2分钟才能完成。

I have been kicking this off manually using the following SQL: 我一直在使用以下SQL手动启动它:

EXEC msdb.dbo.sp_start_job @job_name = '<job_name>'

This works, but what I would like to know is when the job has finished. 这行得通,但是我想知道的是工作何时完成。 According to what I have read so far, I should be able to run: 根据到目前为止的读物,我应该可以运行:

exec msdb.dbo.sp_help_job

This lists my job, but it always has a status of 4 (Idle), even while I can see that reports are being produced. 该列表列出了我的工作,但是即使我看到正在生成报告,它的状态始终为4(空闲)。

How can I tell when the job has completed and all my reports have been produced? 我如何知道工作何时完成以及我的所有报告均已生成?

MSDB shouldn't contain informtaion on the reporting server. MSDB不应在报告服务器上包含信息。 The reporting server is seperate from Sql Server Management Server and will only tell you if the job ran or not not what happened in the job. 报表服务器与Sql Server Management Server是分开的,并且只会告诉您作业是否运行。 If you have access to the DB I don't know how you have it set up but I have a subscriptions table that I can check with email sent and when it was sent. 如果您有权访问数据库,我不知道您如何设置它,但是我有一个订阅表,可以检查发送的电子邮件以及发送时间。 IF you don't have that you can go onto the reportserver web site and check the subscription and check the status and it should have a date of when it was last sent. 如果没有,则可以转到报表服务器网站并检查订阅并检查状态,该订阅应具有上次发送的日期。

The only way you can access the information in Sql Server Management Studio is by queryng the DB and its tables assuming it is setup correctly. 可以在Sql Server Management Studio中访问信息的唯一方法是,假设数据库已正确设置,则查询数据库及其表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM