Hi All
Can anyone suggest a reason why a block of code should execute normally when run from Query Analyzer/Management Studio (I have tried both versions) but hang indefinitely when called as a Stored procedure?
The code is complex but essentially does the following:
[1] Get a Date into a variable
[2] Select into three temporary tables various elements of data for the selected date
[3] Combine the data from the three tables into a single permanent table
[4] Drop the temporary tables
The code that is on the server is compiled but when scripted out and run directly executes in 2m 30s.
But when the SP was called I killed the process after 22 hours 30 minutes!
I am running out of ideas....anyone?
----
Andy Kramek
Visual FoxPro MVP
Can anyone suggest a reason why a block of code should execute normally when run from Query Analyzer/Management Studio (I have tried both versions) but hang indefinitely when called as a Stored procedure?
The code is complex but essentially does the following:
[1] Get a Date into a variable
[2] Select into three temporary tables various elements of data for the selected date
[3] Combine the data from the three tables into a single permanent table
[4] Drop the temporary tables
The code that is on the server is compiled but when scripted out and run directly executes in 2m 30s.
But when the SP was called I killed the process after 22 hours 30 minutes!
I am running out of ideas....anyone?
----
Andy Kramek
Visual FoxPro MVP