Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Effect of creating indexes on the fly?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00259732
Message ID:
00259856
Vues:
20
Hi Sylvain,
>1) INDEX ON MyField TO IDXFile doesn't need exclusive use

But it will only work when the table is not opened with buffering in any datasession of the current VFP instance.

>2) SELECT * FROM MyTable INTO CURSOR curTemp
>INDEX ON MyField TAG MyField (VFP will delete the index at the same time the cursor is closed)

Add a NOFILTER to the SELECT statement. Otherwise you likely end up with the original table used again by VFP and the INDEX command fails.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform