我有一份关于SSRS订阅的报告(下面的查询代码)。问题是,当开发人员从他们自己的文件夹中发送报告订阅时,它不会捕获订阅。有什么方法可以捕获“我的报告”订阅吗?
SELECT c.Name as [ReportName] ,su.Description as [SubscriptionDesc] ,c.Path as [ReportPath] ,coalesce(NULLIF(pc.Path,''),'/') as [ReportFolder] ,su.EventType as [SubscriptionType] ,replace(su.DeliveryExtension,'Report Server ', '') as [DeliveryExtension] ,su.LastRunTime ,su.LastStatus ,su.SubscriptionID as [SubscriptionID] FROM Subscriptions su left JOIN Catalog c ON su.Report_OID = c.ItemID left join Catalog pc on c.ParentID=pc.ItemID ORDER BY ReportPath, ReportName
答案 0 :(得分:0)
这些订阅仍应在执行日志中捕获,您可以尝试:
select *
from dbo.ExecutionLog el
left join dbo.Subscriptions s on s.Report_OID = el.ReportID
where s.SubscriptionID is null
order by 1 desc