Answered by:
Table Explaination for dbo.catalog table in ReportServer database

Question
-
Hello,
I am trying to look for the explaination for the columns in dbo.catalog table. Is there any place i have explainations for these tables?
For instance there is a column 'Type' in dbo.catalog table. But not sure what information it has - it has values like 1,2,3,4 .. Wanted to know what these values are.. Any idea on this?
Thanks, Uma
Answers
-
Hi Uma,
We do not document or support querying any Report Catalog tables. If you need to find out what items are in the report catalog, use the ListChildren SOAP API to list them. We do support the ExecutionLog (Table/View; version dependent) or the ExecutionLog2 View. Otherwise, writing queries against the SSRS DB is not supported and the schema, content, interpretation of the content is subject to change without notice.
Probably not the answer you wanted to hear...
-Lukasz
All replies
-
Hi Uma,
We do not document or support querying any Report Catalog tables. If you need to find out what items are in the report catalog, use the ListChildren SOAP API to list them. We do support the ExecutionLog (Table/View; version dependent) or the ExecutionLog2 View. Otherwise, writing queries against the SSRS DB is not supported and the schema, content, interpretation of the content is subject to change without notice.
Probably not the answer you wanted to hear...
-Lukasz
-
Hi Lukasz,
Do you know if it is possible to copy a modelID to another model in the catalog table? Or is the ModelID stored in another table(s) within the ReportServer database?
I had to generate a new report model and cannot overwrite the existing due to it having a different ModelID. I need to overwrite, as there are numerous reports that have been created against the original model?
Thanks!
-Carla
-
Hi Uma,
It is referring to the type of Path column.
if the value was 1 then the path is a folder.
Value 2 refers to Report
Value 3 refers to Resource
Value 4 refers to Linked Report
Value 5 refers to Data Source
i hope it makes you clear your doubt
- Proposed as answer by maplemale Wednesday, January 11, 2012 11:49 PM
-
-
-
-
6 = report model
- Proposed as answer by Valentino Vranken Tuesday, October 23, 2012 12:35 PM
-
In case someone end up here using SQL Server 2008 R2, newly-added values since R2 are:
8 = Shared Dataset
9 = Report PartMCITP SQL Server 2008 (DEV); MCTS SQL Server 2008 (BI, DEV & DBA)
- Proposed as answer by Valentino Vranken Tuesday, October 23, 2012 12:34 PM
-
-
Hi Sushant,
As Lukasz said, Microsoft does not document the internal report server tables/views. However, that of course doesn't mean that you can't query them. As long as you don't rely on the structure of the tables for any production systems, I don't see any harm in running select statements on those tables.
Have a look at the script here for some interesting usage of the reportserver tables: http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
MCITP SQL Server 2008 (DEV); MCTS SQL Server 2008 (BI, DEV & DBA)
-
Hi valentine,
Thanks for your answer. But can you help in getting the list of reports deployed in project web access site?
in catalog table i can find out those names but those contain the deleted report names also. how can i separate reports from deleted reports to existing reports?
Thanks
Sushant
- Edited by Sushant.Yadav Wednesday, July 25, 2012 12:35 PM
-
in catalog table i can find out those names but those contain the deleted report names also. how can i separate reports from deleted reports to existing reports?
The Catalog table does not contain deleted reports. Once they're deleted, they're gone from the table as well. Are you sure you're not confusing "deleted" with "hidden"? To filter out hidden reports, have a look at the Hidden column in the Catalog table:
WHERE Hidden = 0
MCITP SQL Server 2008 (DEV); MCTS SQL Server 2008 (BI, DEV & DBA)
-
-
deleted reports should come off the catalogue table as soon as deleted.
also for the Type use a case:
CASE
WHEN C.type = 1 THEN '1-Folder'
WHEN C.type = 2 THEN '2-Report'
WHEN C.type = 3 THEN '3-File'
WHEN C.type = 4 THEN '4-Linked Report'
WHEN C.type = 5 THEN '5-Datasource'
WHEN C.type = 6 THEN '6-Model'
WHEN C.type = 7 Then '7-ReportPart'
WHEN C.type = 8 Then '8-Shared Dataset'
ELSE '9-Unknown' END AS ItemType,by
Raj Sharma - Lucky Dice
-
They should be deleted from the catalogue as soon as you physically remove them.
As a test - do a select all on the Catalog table and then create a report, you will notice an extra rows created.
As soon as you delete this new report, your rows sould also go down by one.
For the types, use the CASE statment below:
CASE
WHEN C.type = 1 THEN '1-Folder'
WHEN C.type = 2 THEN '2-Report'
WHEN C.type = 3 THEN '3-File'
WHEN C.type = 4 THEN '4-Linked Report'
WHEN C.type = 5 THEN '5-Datasource'
WHEN C.type = 6 THEN '6-Model'
WHEN C.type = 7 Then '7-ReportPart'
WHEN C.type = 8 Then '8-Shared Dataset'
ELSE '9-Unknown' END AS [ItemType]Lucky Dice - Decisive Technology
-
Adding SQL SSRS 2016+ items...
CASE
WHEN C.type = 1 THEN '1-Folder'
WHEN C.type = 2 THEN '2-Report'
WHEN C.type = 3 THEN '3-File'
WHEN C.type = 4 THEN '4-Linked Report'
WHEN C.type = 5 THEN '5-Datasource'
WHEN C.type = 6 THEN '6-Model'
WHEN C.type = 8 THEN '8-Shared Dataset'
WHEN C.type = 9 THEN '9-Report Part'WHEN C.type = 11 THEN 'KPI'
WHEN C.type = 12 THEN 'Mobile Report (folder)'
WHEN C.type = 13 THEN 'Power BI Desktop Document'ELSE 'Unknown' END AS [ItemType]
- Edited by JFoushee Monday, March 4, 2019 7:52 PM
-