question

apple avatar image
apple asked

Query hangs

Hi ! A query which runs fine in dev environment is hanging in QA. The query hangs on the part where it inserts into a temp table so made sure that there is enough space on it I checked that indexes are the same in both the environments. It is reading out 4 million rows .When I check using the query sys.dm_exec_sessions it shows as running. Appreciate any suggestions to troubleshoot the issue Thanks a lot
sqlssis
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sp_lock avatar image sp_lock commented ·
Are you able to provide the query and the execution plan. A few other questions - What is the specification of the server (including the disk config) - Does it run slow after the first time you have executed it? - Have you checked index frag and that stats are up to date?
1 Like 1 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.