Hello,
I am querying the Catalog table in the ReportServer for column [Path] which houses the location of a report. I want to parse that to return only the main folder. So the data reads /CSS/Management. I only want CSS. Can anyone direct me how to do that. This is what I have so far, any help would be much appreciated. Thank you.
SELECT LTrim(RTrim([Path])
, charindex(' ', [Path])
, LTrim(RTrim(substring([path], 1, charindex(' ', [path]))))
FROM [Catalog]
I am querying the Catalog table in the ReportServer for column [Path] which houses the location of a report. I want to parse that to return only the main folder. So the data reads /CSS/Management. I only want CSS. Can anyone direct me how to do that. This is what I have so far, any help would be much appreciated. Thank you.
SELECT LTrim(RTrim([Path])
, charindex(' ', [Path])
, LTrim(RTrim(substring([path], 1, charindex(' ', [path]))))
FROM [Catalog]