mrmookster
Programmer
I have been tearing my hair out over the last few hours - can anybody help.
I have a fairly comlicated query which aggregates data from a UNION ALL into a temporary table then returns the result. It was working perfectly but I changed a very minor part and it stopped returning all the rows I expected.
I went back to my original cut and paste into the SP and it still didn't return all the rows I expected. Now the wierd thing ... if I ran the query, the exact same query in QAnalyzer it evaluated as expected BUT the SP returned a different set of results.
I can only think of some sort of caching issue but my DBA skills aren't that hot anyone got any ideas?
I have a fairly comlicated query which aggregates data from a UNION ALL into a temporary table then returns the result. It was working perfectly but I changed a very minor part and it stopped returning all the rows I expected.
I went back to my original cut and paste into the SP and it still didn't return all the rows I expected. Now the wierd thing ... if I ran the query, the exact same query in QAnalyzer it evaluated as expected BUT the SP returned a different set of results.
I can only think of some sort of caching issue but my DBA skills aren't that hot anyone got any ideas?