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
5 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khan Abrar AhmedPosted Jun 4, 2014, 3:03 AM
but once execution is done then it will free the memory resources and you dont need to drop the table.
Jignesh TrivediPosted Jun 4, 2014, 2:44 AM
Please refer
http://www.sql-server-performance.com/2012/sql-server-t-sql-tuning-temp-table-union/
hope this will help you.
ShehzadPosted Jun 4, 2014, 2:30 AM
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 TrivediPosted Jun 3, 2014, 7:28 AM
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.
Khan Abrar AhmedPosted Jun 3, 2014, 4:41 AM