Environment: SharePoint 2010 and SQL Server 2008 R2 with SSRS running in integrated mode
When I delete data driven subscription "X" what ends up happending is data driven subscription "Y" actually is the one that gets deleted.
Also, I have a lot of orphaned, phantom subscriptions based on the results of the following query versus what is in the SharePoint subscription list.
I've seen some threads whereby you run queries like the one below and do some manual deletes in the subscription table, so I guess I'll flail around with that.
My question though is: has anyone else tried deleting subscription "X" and SharePoint proceeds to delete subscription "Y"? Odd behavior to say the least. Also, the reason why I want to delete subscription "X" is that one phantom subscription keeps running, and I can't stop it since it does not show up in the SharePoint interface.
SELECT
d.description
, LastRunTime
, laststatus
, b.name AS JobName
, e.name
, e.path
, a.SubscriptionID
, eventtype
, LastRunTime
, date_created
, date_modified
FROM ReportServerIntegrated.dbo.ReportSchedule a JOIN msdb.dbo.sysjobs b
ON cast(a.ScheduleID as varchar(200)) = b.name
JOIN ReportServerIntegrated.dbo.ReportSchedule c
ON b.name = cast(c.ScheduleID as varchar(200))
JOIN ReportServerIntegrated.dbo.Subscriptions d
ON c.SubscriptionID = d.SubscriptionID
JOIN ReportServerIntegrated.dbo.Catalog e
ON d.report_oid = e.itemid
where
e.Name = 'FPDS Checks by AutoAlert with Exclusions.rdl'
order by d.lastruntime