Query extremely slow in code but fast in SSMS

前端 未结 4 1813
无人及你
无人及你 2020-11-27 07:00

I have a fairly simple query that I keep getting timeouts (it takes over three minutes to complete, I stopped it early so I could post this question) on when it is running i

4条回答
  •  天命终不由人
    2020-11-27 08:06

    Run DBCC FREEPROCCACHE, as suggested here, just to make sure the problem isn't due to a stale query execution plan.

提交回复
热议问题