Query times out when executed from web, but super-fast when executed from SSMS

前端 未结 8 858
忘了有多久
忘了有多久 2020-11-27 02:57

I\'m trying to debug the source of a SQL timeout in a web application that I maintain. I have the source code of the C# code behind, so I know exactly what code is running.

8条回答
  •  遥遥无期
    2020-11-27 03:49

    I had the same problem and it was fixed by executing procedure "WITH RECOMPILE". You can also try using parameter sniffing. My issue was related to SQL cache.

提交回复
热议问题