Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

A statement that uses local temp tables is running slow - tempdb database the issue?

$
0
0

Running a statement that uses a local #temp table seems to run a lot slower when user activity picks up.  I have an equivalent statement that was rewritten to use a CTE that runs much faster.  How can I tell where the bottleneck is with tempdb?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>