I am trying to get a list of all available CI's and the categories that each one belongs to (in incidents)
I can get all CI's using ODBC/OpenQuery:
SELECT *
FROM OPENQUERY(sndev,
'
select
name,
category,
subcategory,
short_description
from cmdb_ci
')
What I can't figure out how to get is the category (or categories) that each CI is tied to.
The cmdb_ci table has 'category' and 'subcategory' columns. I can see them when looking at this table via Query Builder but the result when running that query is all NULL for category and subcategory.