I am stuck at a very very weird situation. I have a sproc which occasionally hangs at below query:
select * into #temptable
from my statictable
where id= 10000
I) there is no blocking
ii) drive on tempdb has enough space.
iii) current spid is using less than 200 MB of tempdb.
iv) if i take the same query and manually run it completes in less than 1 min
v) when i do sp_who2 on that spid i see very very high CPU usage but no change in IO.
Any thoughts?