Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table header corruption - can't add rows to table
Message
De
17/08/2001 16:31:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00544233
Message ID:
00545638
Vues:
18
>Hi!
>
>This problem was discussed before a lot, and I experiensed it too. The solution is to add FLUSH command just after END TRANSACTION. Accordingly to the Hacker's Guide, table header is not updated for table into which new records are inserted when optimistic buffering used and transaction. FLUSH do update headers and prevents such problem (except for case when computer/network crashes at moment between END TRANSACTIOn and FLUSH commands, that is quite rare).
>
>To fix the table after such problem, open VFP development environment, set up in options to do not use any buffering, open that table in exclusive mode, browse it, use 'Ctrl+N' to add new record in browse window, than delete that record. This should fix the corrupted header. You will not see one (or more - do not know exactly) newly added records and will lose them, however.

Another trick to the similar effect was to issue
=reccount()
immediately after writing the record (transactions or not). This call goes for the table header, and somehow makes sure it's right. I don't remember the theory behind that, but some frameworks use this trick.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform