FREE TABLE Command

See Also

Removes a database reference from a table.

Syntax

FREE TABLE TableName

Arguments

TableName

Specifies the name of the table from which the database reference is removed.

Remarks

If a database is accidentally deleted from disk, references to the database remain in the tables formerly contained in the database. FREE TABLE removes the database references from a table, allowing you to open the table or add the table to a different database.

FREE TABLE should never be issued to remove a table from a database if the database exists on disk. If the database exists on disk, FREE TABLE may render the database unusable. Use REMOVE TABLE instead. Unlike FREE TABLE, REMOVE TABLE removes all references from the database to primary indexes, default values, and validation rules associated with the table.