Solved

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

Posted on 2011-09-06
5
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 40

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 101

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

728 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