I am new to SQL Server, and I am sorry if there is an obvious solution to my question but I can't seem to find it.
I am looking to generate a report (or list) of all the data sources and their individual dependencies on an SQL Server 2008 R2 (reporting server).
I know that I can access each individual data source to get a list of all the items that are dependent on it. I have done this in the past but it is time consuming.
Is there a way to get a report that would display all the data sources and their dependent items?
Thanks in advance,
Marwan
This query should be run against the
ReportServer
databaseThe dependent items page in Report Manager executes the
dbo.FindItemsByDataSource
stored procedure, supplying these parameters:ItemID = <data source item ID>
andAuthType = 1
. The above query is a hacked version of the query used by this stored procedure to remove the data source specific ID. This allows dependent items to be returned for all data sources. I removed the data sources themselves from the results withDS.Name IS NOT NULL
You might also consider using Powershell:
The following (which was modified from what beargle posted earlier) does what I was looking for. This will list all the data sources by their actual name, and all their dependent items: