Export (0) Print
Expand All
Expand Minimize

FREE TABLE Command

Removes a database reference from a table.


FREE TABLE TableName

Parameters

TableName

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

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, making it possible for you to open the table or add the table to a different database.

Caution noteCaution

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.

Community Additions

ADD
Show:
© 2014 Microsoft