Skip to content

Instantly share code, notes, and snippets.

View tbirt666's full-sized avatar

Thomas Birtwistle tbirt666

View GitHub Profile
@tbirt666
tbirt666 / cmsContentType_Usage.sql
Created October 17, 2018 13:09 — forked from leekelleher/cmsContentType_Usage.sql
Umbraco - database analysis - SQL Queries
-- Copied from Hendy https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72814-creating-a-list-of-unused-doc-types#comment-233729
-- Find all unused docTypes
-- These results may contain docTypes that are masters of used ones, so need to exclude these too...
SELECT
A.nodeId as 'DocTypeId',
B.text AS 'Name',
A.alias AS 'Alias'
FROM
cmsContentType A LEFT JOIN