Skip to content

Instantly share code, notes, and snippets.

@jamescoxhead
Last active November 23, 2016 12:59
Show Gist options
  • Save jamescoxhead/3207a49aea77d3571418 to your computer and use it in GitHub Desktop.
Save jamescoxhead/3207a49aea77d3571418 to your computer and use it in GitHub Desktop.
Lists Umbraco datatypes which haven't been used on document types. Care is needed if using packages like Archetype as this script will show datatypes as unused if they are only used on an archetype.
SELECT distinct [nodeId]
FROM [cmsDataType]
EXCEPT
SELECT distinct dataTypeId
FROM [cmsPropertyType]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment