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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans