存储过程比应用程序慢于Management Studio [英] Stored Proc slower from application than Management Studio

查看:196
本文介绍了存储过程比应用程序慢于Management Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个存储过程,在应用程序(Spring - DBCP - jtds)从10分钟后实际调用时可以运行,但在从SQL Server Managament Stuido执行时运行30秒。有人可以为这个问题提供线索吗?

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?

推荐答案

这通常表示参数嗅探问题。

This normally indicates a parameter sniffing issue.

请参阅申请速度慢,SSMS速度快?了解性能之谜了解详情。

这篇关于存储过程比应用程序慢于Management Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆