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 :
Finance | Project Operations, Human Resources, ...
Unanswered

What is table buffer InMemory table and TmpDB Table

(0) ShareShare
ReportReport
Posted on by 630

Hi All,

Today i am looking differences between InMemory table and TmpDB Table, with help of below link.

http://daxingwitheshant.blogspot.com/2018/08/difference-between-inmemory-and-tempdb.html

Here in point number 4 i can see 

      InMemory tables                                    

=> We cannot use InMemory table buffers.

    TempDB tables 

 => TempDB table buffer can be used in coding.

Please tell me what is the table buffer InMemory table and TmpDB Table.

Thanks and Regards,

Rahul

I have the same question (0)
  • Martin Dráb Profile Picture
    235,966 Most Valuable Professional on at
    RE: What is table buffer InMemory table and TmpDB Table

    You can add methods to all kind of tables; where the data is stored is irrelevant for your capability to write business logic.

    You can't even take a normal (persistent) table and create a temporary (InMemory) buffer from it at runtime, and then the temporary buffer has all methods of the original persistent table.

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: What is table buffer InMemory table and TmpDB Table

    No, it doesn't mean that. You can add methods to all temp tables.

    I recommend you actually do some development on temp tables do try out what you learned. Doing yourself is a great tool in learning.

  • Rahul.p Profile Picture
    630 on at
    RE: What is table buffer InMemory table and TmpDB Table

    Means we can add method TempDB table but not in InMemory table.

  • Blue Wang Profile Picture
    on at
    RE: What is table buffer InMemory table and TmpDB Table

    Hi Rahul.p,

    You can add methods to a TempDB table. However, you cannot override any methods that come with a new TempDB table.

    Please read Docs: docs.microsoft.com/.../temporary-tempdb-tables

  • Rahul.p Profile Picture
    630 on at
    RE: What is table buffer InMemory table and TmpDB Table

    Can we write and override method InMemory table and TmpDB table?

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: What is table buffer InMemory table and TmpDB Table

    InMemory table is stored in memory. TempDB table is stored in SQL database. Both are temporary and the data exists only in scope of one user session, until the table buffer variable goes out of scope

    For example if you declare a temp table in your method, and insert some data, the data disappears after the method is executed (unless you pass the buffer to another method).

  • Rahul.p Profile Picture
    630 on at
    RE: What is table buffer InMemory table and TmpDB Table

    Thanks Nikolaos for your reply.

    Could you please tell me what is the difference between InMemory table and TmpDB table.

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: What is table buffer InMemory table and TmpDB Table

    I think point 4 is incorrect. You can use both table buffers. If you could not use the table buffer, then the whole table would be pointless.

    Table buffer means variable of your table type. For example if you declare "SalesTable mySalesTable", then myTable points to a table buffer (which is empty until you select or insert something)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 823 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 673 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 491 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans