Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to packing a table
Message
De
29/07/1999 13:57:17
 
 
À
29/07/1999 13:31:58
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00247762
Message ID:
00247810
Vues:
24
>Dan,
>
>You can't do the COPY TO... because you screw up the link between the table and its database.
>
>Conventional wisdom is to get Stonefield Database toolkit. Or, if you want to learn how and think you can build a better mousetrap, do it yourself (which is what I did, so I could tie it into my own data dictionary).
>
>>I have heard that it is not wise to pack a table on a production system, especially when you're dealing with a fairly large table. ( 100,000+ ). Instead you do something like:
>>
>>PARAMETERS tcDbc, tcTableName
>>USE (tcTableName)
>>COPY TO TEMP DATABASE (tcDbc) FOR NOT DELETED()
>>RENAME TEMP.DBF TO &tcTableName..DBF
>>REINDEX
>>* Or recreate the indexes one by one from a data dictionary
>>
>>1. Is the correct syntax.
>>
>>2. If its correct, is there a problem in VFP 5, where the copy to only copies the first 10 characters of field names.
>>
>>TIA

Thanks for the info. We have Stonefield but have never implemented it in production. Maybe its time.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform