Using latest build from V2.5., SQL 2005, VS 2005.
Hi,
I'm experiencing a very strange issue which I've never ran into before.
In our EventLog, time-outs showed up for a specific query, so I debugged the code producing this error and found out that the adapter running the query was not able to perform the fetch within the defined time-out period. So ok, that's possible in real-life situations but now comes the strange part.
After raising the time-out, the query did run eventually (< 2 min) and I copy-pasted the exact SQL command from the SQL Profiler trace-window for this query and ran it in a query window from the SQL Management Studio. What do you think ? Got an answer within 2 seconds for the exact same query.....so I'm quite flabbergasted by this result as I can't explain why the same query runs differently.
In the screenshot attachment, you'll see on the second line the original query (RPC:Completed), stating 448224 reads and produced from code, and on the last line you'll see the result from the Management Studio query window, stating a lot less reads (16290). This is propably a part of the problem....but I can't explain why as the query is exactly the same.
Has anyone experienced this problem before ?
Please help....
Grtz,
Danny