Hi Jacques,
I can't think of anything to explain why the query execute faster in the command box than in the program, but are you sure that your query is fully Rushmore optimizable? You can check this by issuing Sys(3054, 11) before the query.
HTH
>On a form, I call a screen who will serve to build a query (In screen, I have fields in witch I can enter text). The part to build the query is not the speed problem.
>
>The problem is that when I execute the query (The query is in a text variable and I execute it with "&SqlQuery"), it take about 4 1/2 minutes. If I put a suspend command in my code, and then I go in the VFP Command box then I execute the "&SqlQuery" command, it take 15-20 secondes!
>
>I tried to simplify the query as much as I could, I tried to get rid (just to try) of the "&SqlQuery" by having a "code" query insted but I have the same result.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only