How to Remove Table from Persistent Relation with ProgramID: Q130352 3.00 WINDOWS The information in this article applies to:
SUMMARYThis article shows three methods you can use to remove a table from a Persistent Relation.
MORE INFORMATIONUse the following code to create an example database (DBC) with two tables in a Persistent Relation:
Method One - RiskyDrop or remove the PRIMARY KEY from the parent table as in this example:
This command successfully removes the parent table from any and all
Persistent Relations in which the table is participating. It also removes
the PRIMARY Key index tag from the table. This is not a "safe" method to
use because of the scope of its effect.
Method Two - SaferDelete the tag in the child table that is part of the Persistent Relation as in this example:
This method breaks the Persistent Relation, but it also deletes the tag in
the pr_Child table.
Method Three - Best MethodUse the following command:
This command successfully removes the child table from the Persistent
Relation and the [SAVE] clause preserves the child table's index tag. Here
is an example using the example database:
If the SAVE clause is not used, the cid tag is deleted from the pr_Child
table.
Methods two and three are safer than method one because they have a relatively narrower scope of effect with fewer global changes. Removing the primary key, as method one does, could destroy one or more other persistant relations, which you may not want to do. Additional reference words: 3.00 VFoxWin KBCategory: KBSubcategory: FxprgTable
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |