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
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.
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.
Means we can add method TempDB table but not in InMemory 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
Can we write and override method 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).
Thanks Nikolaos for your reply.
Could you please tell me what is the difference between 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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 823 User Group Leader
André Arnaud de Cal... 673 Super User 2025 Season 2
Martin Dráb 491 Most Valuable Professional