Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing indexes programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00169556
Message ID:
00169564
Vues:
24
>Hello All,
>I have a need to remove all index tags from my tables ( for performance reasons ) then reinstate them, I saw some code years ago that modified the header using low level functions,did something then set the header back as was, anyone have any ideas?

DELETE TAG ALL does exactly what you need but would require that you rebuild the indexes at a later time to reinstate them; if data is being changed while the tags are disabled, you'd need to do this IAC.

If no data is being changed, there's no reason to do this; simply SET ORDER TO 0, or if you need the file in other than natural record order, a SQL Select to a cursor, acting against the cursor, should not involve any record skip overhead.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform