This documentation is archived and is not being maintained.

CDaoDatabase::DeleteTableDef

Call this member function to delete the specified table and all of its data from the CDaoDatabase object's TableDefs collection.

void DeleteTableDef(
   LPCTSTR lpszName 
);

Parameters

lpszName
The name of the tabledef to delete.

Remarks

Afterwards, that table is no longer defined in the database.

Note   Be very careful not to delete system tables.

For information about creating tabledef objects, see class CDaoTableDef. A tabledef object becomes associated with a particular CDaoDatabase object when you construct the CDaoTableDef object, passing it a pointer to the database object.

For information about tabledefs, see the article DAO TableDef. For related information, see the topic "Delete Method" in DAO Help.

See Also

CDaoDatabase Overview | Class Members | Hierarchy Chart | CDaoTableDef::Create | CDaoQueryDef::Create | CDaoDatabase::CreateRelation

Show: