Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Conflict
Message
De
04/01/2005 11:17:49
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
03/01/2005 17:20:50
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00973947
Message ID:
00974099
Vues:
29
Joel

I am not sure about what is causing the update conflict. This usually happens when someting changes on the Sql Server side. You can use the second parameter to force the update tableupdate(1,.t.).

This example would be much faster.
lnHndl = cursorgetprop("yourview","ConnectHandle")
lcSql = "update view_table set xxx=1"
lnResult = sqlexec(lnHndl,lcSql)
requery("yourview")
>I have a remote view to an SQL table of about 100,000 records.
>
>if I open the table, then say Go Bottom (to give it time to open) and then say:
>
>Replace all XXX with .f.
>Tableupdate()
>
>It will update a few records then give me UPDATE CONFLICT
>
>So I put a a Do While loop and Replace XXX with .f. then a Wait Window Timeout .1 and Tableupdate() and it goes down the file a lot farther, but that is slow and it too eventually stops.
>
>If I put Wait Window Timeout 5 it goes much farther, but eventually says my ODBC connection is BUSY.
>
>Obviously I have some seting wrong because on a 100,000 record file I can not wait several seconds for each Tableupdate().
>
>Should this work???
>
>Replace all XXX with .f.
>Tableupdate()
>
>
>Thanks
>Joel
>Houston, TX
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform