CDaoDatabase::DeleteTableDef

void DeleteTableDef( LPCTSTR lpszName );
throw( CDaoException, CMemoryException );

Parameters

lpszName

The name of the tabledef to delete.

Remarks

Call this member function to delete the specified table and all of its data from the CDaoDatabase object’s TableDefs collection. Afterwards, that table is no longer defined in the database.

Warning   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 in Visual C++ Programmer's Guide. For related information, see the topic "Delete Method" in DAO Help.

CDaoDatabase OverviewClass MembersHierarchy Chart

See Also   CDaoTableDef::Create, CDaoQueryDef::Create, CDaoDatabase::CreateRelation