Query extremely slow in code but fast in SSMS

前端 未结 4 1810
无人及你
无人及你 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 07:46

    Capture the execution plan from both SSMS when you manually run your query and then from Profiler when you are running your application. Compare and contrast.

提交回复
热议问题