Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does my query hang?
Message
From
23/12/2003 09:34:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/12/2003 08:39:18
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00861566
Message ID:
00861590
Views:
16
>Hi All,
>
>I have a program that had been running just fine for almost 3 years. Then on Friday it began to hang. 1 of the querys would no longer execute. It is a simple little query. The following is executed through SPT to a VFP database.
>
>SELECT ALLT(PERS.last_name) + ', ' + SUBSTR(PERS.first_name, 1, 1) AS full_name, EMP.pers_no FROM EMP LEFT OUTER JOIN PERS ON EMP.pers_no = PERS.pers_no WHERE EMP.hrs_base == 1
>
>I found out that now I have to add the following ORDER BY clause to make it execute.
>
>ORDER BY PERS.last_name, PERS.first_name
>
>Ok, I probably should have had this there already. But why all of a sudden does it demand it to work? We've done no serious upgrades to the database. The ODBC driver's haven't changed in a while. What gives???
>
>TIA
>Mike
>
>P.S. VFP6 SP5

Probably formerly first pulled record had a corresponding name now null.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform