@Kalidas Yerravarapu - Thanks for the question and using MS Q&A platform.
To clear off TEMPDB space, you can try the following steps:
- Monitor TEMPDB space usage using the Azure Synapse Toolkit to identify the queries that are consuming the most space.
- If you have a query that is consuming a large amount of memory or have received an error message related to the allocation of
tempdb
, it could be due to a very large CREATE TABLE AS SELECT (CTAS) or INSERT SELECT statement running that is failing in the final data movement operation. This can usually be identified as a ShuffleMove operation in the distributed query plan right before the final INSERT SELECT. Use sys.dm_pdw_request_steps to monitor ShuffleMove operations. - The most common mitigation is to break your CTAS or INSERT SELECT statement into multiple load statements so that the data volume will not exceed the 399 GB per 100DWUc
tempdb
limit. You can also scale your cluster to a larger size to increase how muchtempdb
space you have.
For more details, refer to MS Q&A threads addressing similar issue:
Delete data from tempdb for Synapse dedicated SQL Pool
Troubleshoot tempdb errors on a dedicated SQL pool
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.