Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2019 16:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
This query will show you the count of records per Hardware Inventory class in your HinvChangeLog table.
This can help you identify a class that is create a lot of hardware inventory 'traffic' and potentially bloating
your database.
SELECT map.DisplayName
, map.InvClassName AS 'Inventory View'
FROM HinvChangeLog hinv
LEFT JOIN v_GroupMap map ON map.GroupID = hinv.GroupKey
GROUP BY map.DisplayName
, map.InvClassName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment