December 13, 2022 at 9:15 am
Hi
is there a way to list all the data sources in SSRS 2016, and if possible which reports use them?
Cheers
Alex
December 13, 2022 at 6:31 pm
This should get you started.
SELECT
C2.Name AS Data_Source_Name,
C.Name AS Dependent_Item_Name,
C.Path AS Dependent_Item_Path
FROM ReportServer.dbo.DataSource AS DS
INNER JOIN ReportServer.dbo.Catalog AS C
ON DS.ItemID = C.ItemID AND DS.Link IN (SELECT ItemID FROM ReportServer.dbo.Catalog WHERE Type = 5)
FULL OUTER JOIN ReportServer.dbo.Catalog C2
ON DS.Link = C2.ItemID
WHERE
C2.Type = 5
ORDER BY
C2.Name ASC,
C.Name ASC;
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy