Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to packing a table
Message
From
29/07/1999 12:43:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Alternative to packing a table
Miscellaneous
Thread ID:
00247762
Message ID:
00247762
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform