我创建了一个报告,可以显示所有报告订阅的状态。也许您可以使用它来获取完整的报告列表以及与之关联的订阅。我连接到我的报告服务服务器。
SELECT
SubscriptionID,
SubscriptionOwner,
ModifiedDate,
Description,
EventType,
DeliveryExtension,
LastStatus,
LastRunTime,
NextRunTime,
ScheduleName,
ReportPath,
ReportName,
ReportDescription
FROM
SubscriptionsList_v
我不记得是否创建了这个视图或者它是否是标准的。这是我创建的视图
SELECT TOP (100) PERCENT
SUB.SubscriptionID,
USR.UserName AS SubscriptionOwner,
SUB.ModifiedDate,
SUB.Description,
SUB.EventType,
SUB.DeliveryExtension,
SUB.LastStatus,
SUB.LastRunTime,
SCH.NextRunTime,
SCH.Name AS ScheduleName,
CAT.Path AS ReportPath,
REVERSE(LEFT(REVERSE(CAT.Path), CHARINDEX('/',REVERSE(CAT.Path), 1) - 1)) AS ReportName,
CAT.Description AS ReportDescription
FROM
dbo.Subscriptions AS SUB INNER JOIN
dbo.Users AS USR ON SUB.OwnerID = USR.UserID INNER JOIN
dbo.Catalog AS CAT ON SUB.Report_OID = CAT.ItemID INNER JOIN
dbo.ReportSchedule AS RS ON SUB.Report_OID = RS.ReportID AND SUB.SubscriptionID = RS.SubscriptionID INNER JOIN
dbo.Schedule AS SCH ON RS.ScheduleID = SCH.ScheduleID
ORDER BY SubscriptionOwner, ReportPath
我很确定这不是我自己写的,但可能是从网上某处得到的。