Solved

SSRS Subscription - How to find a subscription that points to an rdl file

Posted on 2011-09-06
5
462 Views
Last Modified: 2012-05-12
I need to know which ssrs subscription a particular rdl file points to.
All I know is the name of the rdl file, example XYZ.rdl.

I need to know the subscription name on the repoting server this rdl file is used by.
0
Comment
Question by:countrymeister
5 Comments
 
LVL 2

Assisted Solution

by:awarren85
awarren85 earned 166 total points
ID: 36493423
Try the bottom query from this website -- it should show all subscriptions that are on the reporting server as well as which reports they are linked to.  Good luck.

http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60285.aspx

0
 
LVL 21

Assisted Solution

by:Alpesh Patel
Alpesh Patel earned 166 total points
ID: 36495012
SELECT
distinct s.Report_OID , c.Name AS TheReport --u.UserName AS TheUser,
FROM
[Catalog] c INNER JOIN Subscriptions s
ON s.Report_OID = c.ItemID
--INNER JOIN Users u ON u.UserID = s.OwnerID
ORDER BY c.Name
0
 
LVL 39

Accepted Solution

by:
lcohan earned 168 total points
ID: 36506031
As far as I know you need to publish a report in order to create subscriptions and you can see details about them by running code below against your SQL server ReportServer database. Other than that you should be able to manage/get info about subscriptions as per link below:
http://www.codeproject.com/KB/reporting-services/DynamicSSRSSubscriptions.aspx


--find_ssrs_subscriptions
select      
            'NextRunDate' = js.next_run_date,
            'NextRunTime' = js.next_run_time,
            'Frequency'   = case when sc.freq_type = 4 then 'Daily'
                                          when sc.freq_type = 8 then 'Weekly'
                                          when sc.freq_type = 16 then 'Monthly'
                                          end,
            'Subscribers' = s.ExtensionSettings,
            'SubscriptionOwner' = us.UserName,
            'LastRun' = s.LastRunTime,
            'ReportPath' = c.Path,
            'SQLJobName' = j.name,
from ReportServer.dbo.Subscriptions s
      inner join ReportServer.dbo.Catalog c on c.ItemID = s.Report_OID
      inner join ReportServer.dbo.Users us on us.UserID = s.OwnerId
      inner join msdb.dbo.sysjobs j on j.job_id = (select job_id from msdb.dbo.sysjobsteps where command like '%'+CONVERT(nvarchar(128),s.Report_OID)+'%')
      inner join msdb.dbo.sysjobschedules js on j.job_id=js.job_id
      inner join msdb.dbo.sysschedules sc on js.schedule_id=sc.schedule_id
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 36929590
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question