开发者

SQL Server stored procedure slow in application but fast in SQL Server Management Studio

开发者 https://www.devze.com 2023-02-13 14:47 出处:网络
Merged with SQL Server 2005 stored procedure fast in SSMS slow from VBA. I have a stored procedure on SQL Server 2005. When running in SQL Server Management Studio, it blindingly fast; bu
Merged with SQL Server 2005 stored procedure fast in SSMS slow from VBA.

I have a stored procedure on SQL Server 2005. When running in SQL Server Management Studio, it blindingly fast; but when I run it in a C# program through system.data, or run it in some other programs through ODBC or JDBC driver, they all run for ever or give timeout error. I don't have the access to the details of the stored procedure. what c开发者_开发问答ould be the possible reason for the performance discrepancy? -it is SQL Server Management Studio vs .net/ODBC/JDBC. ( I tried same query in C# for .net, R for ODBC and matlab for JDBC driver.)

0

精彩评论

暂无评论...
验证码 换一张
取 消