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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

InMemory and TempDB

(0) ShareShare
ReportReport
Posted on by

Both InMemory  and TempDB table types are temporary tables when should each type be used ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at

    On Google you find lots of information, see two link.

    msdn.microsoft.com/.../bb314749.aspx

    msdn.microsoft.com/.../gg845661.aspx

  • Suggested answer
    Tommy Skaue Profile Picture
    Moderator on at

    The key difference is that InMemory is in the AOS memory scope and TempDB is on the SQL Server temporary database. What you should consider is when you need to have a query where you want to join tables it is best to have them on the SQL Server. So if your table must be temporary and you need to use it in joined queries, put it on TempDB. SQL Server will be able to produce the result quicker than having to let the AOS join a result from the SQL Server with some in memory table.

  • Community Member Profile Picture
    on at

    Hi All,

    The scope of InMemory and TempDB table types are same, right?

    The record exist as long as you have the variable for the table type. If declare two different variables or  same variable but two difference session (for eg: open two same form / two login session), it will be not available to you.

    Thank you.

  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Couple of more differences and limitations are highlighted here community.dynamics.com/.../temporary-tables-inmemory-vs-tempdb

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans