Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wierd behaviour in UPDATE SQL
Message
From
29/06/2002 18:25:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Wierd behaviour in UPDATE SQL
Miscellaneous
Thread ID:
00673655
Message ID:
00673655
Views:
49
I have a series of sql updates, that worked yesterday. Today, I get a series of assorted errors. I slowly but surley get rid of some to only aqquire new ones.
In the snippet below, I get "Record not locked"
do while num <50
UPDATE repeats SET repeated= getinarow(num) where number = num
num = num + 1
enddo
Thats a new one on me. I've tried RLOCK() on the entire table, no luck.(Alias not found, well, duh, I'm not opening it, I'm running SQL UPDATE)
In the called function (getinarow), which steps through another table, I get "File is in use", even in the first iteration. If I try
USE Yada AGAIN ALIAS LYada
and close the alias before returning, on return I get
"Fatal excpetion code C0000005 at ......(prg file, line number = the update line above)

It all worked fine yesterday!
Next
Reply
Map
View

Click here to load this message in the networking platform