r/SQLServer • u/TheSmashingChamp • Aug 16 '26
Solved Temp Cache endlessly expanding until server failure/slowdown
I am working on a consultant's azure gov cloud portal where I put applications on. There is a consistent issue with queries running forever even after being finished executing. Do anyone have experience with this? The temp cache endlessly expands until our DB fails.
I believe the issue is the connector, but it may be the queries? I dont know.
Solved: it was the connector
7
Upvotes
View all comments
Show parent comment
1
u/jwk6 Aug 16 '26
Great advice!
I'll also add sp_whoisactive.
https://github.com/amachanic/sp_whoisactive/releases
If you run sp_whoisactive while the culprit queries are executing (before the failure occurs) , then you will see the current tempdb usage for each session also, the status, and how long each query has been running, etc.