Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a bunch of SSRS (2008) reports deployed to our web portal. We have edited some of the reports to use a shared data source different than the one with which it was originally deployed.

I am looking for a way to query the ReportServer database to show me which reports use which of these shared data sources. I found that you can use the XML data stored in Catalog.Content to show what data source is being used, but this appears to the data source with which the report was originally deployed.

share|improve this question

migrated from Oct 17 '11 at 15:17

This question came from our site for professional and enthusiast programmers.

I can't do a full answer, but you should be able to find it in ReportServerDB: there is an Item (?) table that contains all entities. And some link between a report and datasource item. Good hunting! – gbn Oct 17 '11 at 16:44
Thanks, gbn, but that's exactly what I can't find: the link between the catalog and datasource tables... there is no item table... – JHFB Oct 17 '11 at 17:28
And, after close examination, I don't even think the shared data sources are in the datasource table. The plot thickens. – JHFB Oct 17 '11 at 17:29
up vote 10 down vote accepted

Okay, I got it. Found this link which helped:

I distilled that information to this query:

  cat1.Name datasource
  join DataSource
    on Catalog.ItemID = DataSource.ItemID
  join Catalog cat1
    on DataSource.Link = cat1.ItemID
  Catalog.Type = 2

Hope this helps someone else in the future!

share|improve this answer
PERFECT. thanks for the followup "distilled" query. Exactly what I needed. – user14537 Oct 17 '12 at 13:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.