web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Derived table structure in SQL server

(0) ShareShare
ReportReport
Posted on by

Hi,

I just started learning AX 2012.

And I created a base table TabPet which has field InstanceRelationType and PetBirthDate, and a derived table TabPetDog which has field NumberOfTeeth.

And I have setup the InstanceRelationType and Extends property for these two tables.

After I inserted some sample data through X++, I went to SQL server to open the tables. only TabPet table has all the fields includes NumberOfTeeth. TabPetDog table only has some columns like DATAARIEAID, RECVERSION, RELATIONTYPE, PARTITION, RECID.

Can anyone tell me why it's like this? Is it how AX designed?

Thanks a lot,

JIm

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Newbie question about derived table structure in SQL server

    Thank you very much!

  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: Newbie question about derived table structure in SQL server

    Hi Jim Chi,

    Yep it's how AX designed, in early versions on AX 2012  you had one SQL table per one AX table, but in case of big hierarchies AX had to join bunch of tables that cause performance issues, so it was redesign to store everything in one big table where InstanceRelationType  filed specifies "type" of current record.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans