Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is the Pack command really dangerous?
Message
From
12/12/2000 11:57:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00451943
Message ID:
00452298
Views:
33
Hi Dave.

>First of all, I did have a few problems using the Copy To command, primarily because my tables are part of a DBC. The relational links between my tables seemed to get broken for some reason. However, I was able to relink everything. In one case, the index seemed to become corrupted. I probably did something wrong or missed a step or two.

FYI, there's an easier and safer approach: Stonefield Database Toolkit (SDT). It's Reindex method (which doesn't really REINDEX but builds the indexes from scratch) has the optional ability to pack tables first. It doesn't use PACK but rather a SELECT * FROM TABLE to another table, then handles all the work of deleting, renaming, and relinking to the DBC. An additional benefit of this approach is that it uses ORDER BY so the table is physically ordered by the primary key of the table (if there is one). This speeds up access to the table in primary key order.

For more information on SDT (which does a *whole* lot more than just this), see www.stonefield.com.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform