Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row updates from SQL based cursor
Message
From
08/08/2004 14:28:10
 
 
To
08/08/2004 14:06:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00931295
Message ID:
00931648
Views:
31
Your replace statement is only updating one record (at least in this example), could that be it?

I setup similar code and it works (by correcting the previously noted typo). I do a replace all on one field and all updates occur (using pretty much the exact same code as yours, but using the northwind database employees table).

You can turn on SQL Profiler and run your prg and then check to see what commands are getting to SQL server. If there are multiple records being updated, you should be able to look at the generated SQL update command (in SQL Profiler) to debug why the rows are not getting updated.

>Mark
>
>That's just a typo, as I've cut and paste from my VFP code.
>
>As per the previous posts in this thread, this routine works fine. The problem is that only the 1st record from the SQL cursor can be updated, i.e. the very record in the SQL table. If I select the 2nd/3rd/4th record etc. I cannot update it from VFP.
>
>Regards
>
>Derek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform