E
Eric Renken
Yes, you are all thinking another person who needs to set the CommandTimeout
property. Well this time I don't think so; however setting it longer does
fix the problem, but it isn't the answer, because in a large user web site I
can tie up SQL that long.
I have a stored procedure that when called from Query Analyzer returns
within a second. When that same EXACT query is called from C# ADO.NET using
the SqlClient or OleSbClient it takes about 40 seconds to return. I think
it has something to do with a "indexed view". We ran the Index Tuning
wizard on the stored procedure and its recommendation was this "indexed
view". This improved the speed and took it down to 1 second. Before that
it took over a minute to execute. Is there a problem with ADO.NET, and ADO
2.7 as we tried that as well , calling stored procedures that could use an
indexed view. It seems that it seems that the query optimizer isn't
allowing for the use of the view.
This problem happens when you call it from C# Windows app, C# ASP.NET app,
and a VB 6 app. I think it is a problem with how ADO is calling SQL. It
could be a configuration problem and that would be great as that would be an
easy fix.
We are running VS 2003 .NET 1.1 and our SQL Server is SQL 2000 with SP 3.
Any help on this would be appreciated, as I need to get this fixed SOON.
Eric Renken
property. Well this time I don't think so; however setting it longer does
fix the problem, but it isn't the answer, because in a large user web site I
can tie up SQL that long.
I have a stored procedure that when called from Query Analyzer returns
within a second. When that same EXACT query is called from C# ADO.NET using
the SqlClient or OleSbClient it takes about 40 seconds to return. I think
it has something to do with a "indexed view". We ran the Index Tuning
wizard on the stored procedure and its recommendation was this "indexed
view". This improved the speed and took it down to 1 second. Before that
it took over a minute to execute. Is there a problem with ADO.NET, and ADO
2.7 as we tried that as well , calling stored procedures that could use an
indexed view. It seems that it seems that the query optimizer isn't
allowing for the use of the view.
This problem happens when you call it from C# Windows app, C# ASP.NET app,
and a VB 6 app. I think it is a problem with how ADO is calling SQL. It
could be a configuration problem and that would be great as that would be an
easy fix.
We are running VS 2003 .NET 1.1 and our SQL Server is SQL 2000 with SP 3.
Any help on this would be appreciated, as I need to get this fixed SOON.
Eric Renken