Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pessimistic buffering
Message
 
À
20/02/2002 10:13:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00622560
Message ID:
00622869
Vues:
28
>Reason: SELECT - SQL re-opens the table, and the appended records don't yet
>exist on disk, until you issue TableUpdate().
>
>Workarounds:
>
>1) Save your changes with TableUpdate() first.
>
>2) Select the same workarea where you are doing changes, and COPY TO a temp
>table.

Workaround 2) was my preferred method, but there is another one.

3) Wrap the TableUpdate() in a BEGIN TRANSACTION/ROLLBACK so that you do the SELECT statement and then roll back your changes. I don't like this method, but there isn't any reason I know of not to use it.
* Pseudo-code -- do not use unmodified.
* Append records
BEGIN TRANSACTION
TABLEUPDATE(2)
SELECT * FROM myTable
ROLLBACK
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform