Hi All,
I found there are hundred over #temp tables created in tempdb...
#temp tables are created physically on disk...But will these high volume of #temp table effect CPU Memory?
Regards
Shehzad
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 3, 2014, 12:41 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 3, 2014, 3:28 AM EDT
hi,
yes agree with Khan Abrar Ahmed.
but it automatically dropped by SQL server once it finish execution scope. We can also an DROP a temp table explicitly (after finish task simply drop it).
Instead of Temp table you can use temp variable or CTE.
hope this will help you.
ShehzadRank #2,660 · 522 reputationPosted Jun 3, 2014, 10:30 PM EDT
Thanks for your reply...But my concern is CPU Memory utilization....
As per Articles i have read about table Variable it is partially created on Memory ' Is my understanding correct?
Regards
Shehzad
Jignesh TrivediRank #16 · 50.3K reputationPosted Jun 3, 2014, 10:44 PM EDT
Please refer
http://www.sql-server-performance.com/2012/sql-server-t-sql-tuning-temp-table-union/
hope this will help you.
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 3, 2014, 11:03 PM EDT
but once execution is done then it will free the memory resources and you dont need to drop the table.