Skip to content

Instantly share code, notes, and snippets.

@matejskubic
Forked from anzekrpic/MEcount.sql
Last active August 24, 2016 12:20
Show Gist options
  • Save matejskubic/b971199c5af1b52ddf701a06116923f8 to your computer and use it in GitHub Desktop.
Save matejskubic/b971199c5af1b52ddf701a06116923f8 to your computer and use it in GitHub Desktop.
AX modelElements in models between build versions
SELECT mf.name,
mf.VersionMajor,
mf.VersionMinor,
mf.VersionBuildNo,
mf.VersionRevision,
COUNT(*) AS 'Element count'
FROM modelelementdata med
JOIN modelmanifest mf ON mf.modelid = med.modelid
WHERE mf.VersionBuildNo BETWEEN 1000 AND 3999
GROUP BY mf.name,
mf.VersionMajor,
mf.VersionMinor,
mf.VersionBuildNo,
mf.VersionRevision;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment