How to find a table name by ID in Dynamics AX

David picture David · Jan 8, 2010 · Viewed 69k times · Source

Each table in the AOT has an ID, how can I discover the table name given an ID?

Answer

DAX picture DAX · Oct 11, 2012

Looking at the SQL dictironary is really the correct method. Search for the line with the FieldId equal to 0. Using TSQL this will tell the name of the table for tableid 505

select NAME 
  from SQLDICTIONARY
 where TABLEID = 505
   and FIELDID = 0