I would like to use a script to update the data source used for connections to support multiple folder structures with duplicate reports.At first, it appeared that Data Source is the cross reference for reports but that doesn’t seem to be it.It also doesn’t seem to be the value of <rd:DataSourceID> in the XML.How do I update a specific RDLs data source connection via a script?SELECT TOP (2) R.ItemID AS ReportId , R.[Path] AS ReportPath , R.Name AS ReportName , D.Name AS DSName , D.[Path] AS DSPath , CAST(CAST(R.[Content] AS [varbinary](MAX)) AS XML) reportXMLFROM [Catalog] AS R INNER JOIN DataSource AS X ON R.ItemID = X.ItemID INNER JOIN [Catalog] AS D ON X.Link = D.ItemIDWHERE R.[Type] = 2 AND D.[Type] = 5ORDER BY ReportPath
↧