Stored Proc slower from application than Management Studio

末鹿安然 提交于 2019-12-20 06:38:48

问题


We have a stored proc which runs pathetically when called from application (Spring - DBCP - jtds) infact timesout after 10 minutes, but runs in 30 seconds when executed from SQL Server Managament Stuido. Can someone provide leads into this issue?


回答1:


This normally indicates a parameter sniffing issue.

See Slow in the Application, Fast in SSMS? Understanding Performance Mysteries for details.



来源:https://stackoverflow.com/questions/7504273/stored-proc-slower-from-application-than-management-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!