Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PACK/REINDEX etc. in VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00146465
Message ID:
00146486
Views:
27
>Recently took the AppDev VFP course, learned an amazing amount. The instructor pointed out that commands like ZAP/PACK/REINDEX can be dangerous in VFP when using DBCs, and stated very good reasons why. However, I can't remember what they were!
>
>Sure ZAP will clobber any child tables, since they'll no longer have a parent to link too, but what about REINDEX/INDEX/PACK?

Bob,

Nancy is right, the problem with ZAP is that the child tables are left with orphaned records.

Reindex has problems in tow areas, one it depends on an intact CDX header record to know what to do. With a damaged index file this is not good. Also, it removes all teh tags and thus all the persistent relations (and the RI rules)in the dbc in the process of doing its work.

INDEX isn't bad in it self.

PACK requires exclusive use of the table, which can be a problem in a multiuser system. It also recreates all of the indexes.

The best way I have found to handle these housekeeping chores is Stonefield Database Toolkit, they advrtise here on the UT.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform