FREE TABLE Command Removes Table from Corrupted DatabaseLast reviewed: April 30, 1996Article ID: Q129400 |
The information in this article applies to:
SUMMARYThe FREE TABLE command removes a table from a database. The purpose of this command is to provide a programmatic way to remove a table from a corrupted database. You should normally use REMOVE TABLE to remove a table from a database that is not corrupted.
MORE INFORMATIONIf FREE TABLE is used to remove a table from a database that is not corrupted, the Table Designer window still displays the table. However, the table is no longer really part of the database, and issuing the VALIDATE DATABASE command causes the following error message to be displayed:
Validate Database database name Rebuilding Structural Index.....Index Rebuilt Object #N(Table 'table name'): table is not in databaseAlso, attempting to browse or modify the table causes the error message to be displayed:
Table <table name> is not marked as belonging to <database name> database. Would you like to create the back link to mark it?Answering Yes to this question recreates the back link of the table to the database and issuing the VALIDATE DATABASE command returns the message "Database container is valid". The table is now part of the database again.
Example Usage of the FREE TABLE CommandCAUTION: Performing this example will corrupt the TESTDATA.DBC database in the SAMPLE subdirectory.
|
Additional reference words: 3.00 VFoxWin errmsg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |