mdlong
5/11/2018 - 12:03 PM

Count Layers per Map Document

-- Count Layers per Map document
SELECT
  count(LYR_Name) AS Count,
  LYR_Name,
  LYR_Path
FROM Layers
  --where LYR_Path like 'C:%'
GROUP BY
  LYR_Name,
  LYR_Path
ORDER BY Count
  DESC