Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 244817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:02:12+00:00 2026-05-11T21:02:12+00:00

I have a project to update all reports on an SSRS instance and thought

  • 0

I have a project to update all reports on an SSRS instance and thought I would get a list of all reports into Excel so I can tick them off as I update each one. Easy I thought. I dont use it often (at all) but XML seemed to lend itself to this. I would have something like:

<Server>
  <ReportFolder>
    <ReportFolder>
      <Report>
      </Report>
      <Report>
      </Report>
    </ReportFolder>
    <Report>
    </Report>
    <Report>
    </Report>
    <Report>
    </Report>
  </ReportFolder>
  <ReportFolder>
  </ReportFolder>
</Server>

The Catalog table was my source of data, it has ItemID and ParentID so I can identify objects and their hierarchy but I cannot get the full server in XML form, I can get the contents of one folder, if I specify the folder (name or ItemID) but not the whole server. Once I take out the WHERE ItemID = 1234 line I get something like:

<Server>
  <ReportFolder>
  </ReportFolder>
  <ReportFolder>
  </ReportFolder>
  <ReportFolder>
  </ReportFolder>
    <Report>
    </Report>
    <Report>
    </Report>
    <Report>
    </Report>
    <Report>
    </Report>
    <Report>
    </Report>  
</Server>

I have tried CTE’s XML AUTO, XML EXPLICIT and am now getting to feel my disassociation thus far with XML is justified!

Is there a way to get the full (up to 4 levels) of hierarchy in XML form?

Is this something that just isnt relevant to XML and I have taken a wrong turn into a dead-end?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:02:12+00:00Added an answer on May 11, 2026 at 9:02 pm

    So, good news and bad news. Here’s the good news.

    CREATE FUNCTION [dbo].[GetReportTree](@ItemId uniqueidentifier)
    RETURNS XML
    BEGIN RETURN 
      (SELECT   ca.ItemId AS '@ItemId',
                ca.Name AS '@Name',
                ca.Type AS '@Type',
                dbo.GetReportTree(ca.ItemId)
       FROM dbo.Catalog ca
       WHERE (@ItemId IS NULL AND ParentId IS NULL) OR ParentID=@ItemId
       FOR XML PATH('CatalogItem'), TYPE)
    END
    
    SELECT dbo.[GetReportTree](NULL)   
    

    Produces a hierarchy like this:

    <CatalogItem Name="" Type="1">
      <CatalogItem Name="ScrumTest" Type="1">
        <CatalogItem Name="(Hidden) Delta Report Small" Type="2" />
        <CatalogItem Name="(Hidden) Product Burndown Chart Small" Type="2" />
        <CatalogItem Name="(Hidden) Product Cumulative Flow Small" Type="2" />
        <CatalogItem Name="(Hidden) Sprint Burndown Chart Small" Type="2" />
        <CatalogItem Name="All Product Backlog Items" Type="2" />
        <CatalogItem Name="All Sprint Backlog Items" Type="2" />
        <CatalogItem Name="All Sprints" Type="2" />
        <CatalogItem Name="Current Sprint Status" Type="2" />
        <CatalogItem Name="Delta Report" Type="2" />
        <CatalogItem Name="Engineering Reports" Type="1">
          <CatalogItem Name="(Hidden) Bug History Chart Small" Type="2" />
          <CatalogItem Name="Bug Count" Type="2" />
          <CatalogItem Name="Bug History Chart" Type="2" />
          <CatalogItem Name="Bug Priority Chart" Type="2" />
        </CatalogItem>
        <CatalogItem Name="Impediment Report" Type="2" />
        <CatalogItem Name="Product Backlog Composition" Type="2" />
        <CatalogItem Name="Product Burndown Chart" Type="2" />
        <CatalogItem Name="Product Cumulative Flow" Type="2" />
        <CatalogItem Name="Retrospective Report" Type="2" />
    

    The bad news, is that I am not sure if you can do it without adding the “ReportTree” function into your ReportServer. So, it depends on your access to that server. You may be able to get the function to work across databases, I did not try that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that I would like to start beta testing soon, it
I have a project where I would like to generate a report export in
I have to update old projects at work. I do not have any experience
I have project that I'm working on that is going to require a webserver.
I have a project that I'm currently working on but it currently only supports
I have C++ project (VS2005) which includes header file with version number in #define
I have a project with a bunch of external sounds to a SWF. I
I have a project the requires the use of the exec family. My project
I have a project where a .master page was created without a code behind
I have a project written in Java (>1.5). Is it possible to write parts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.