ITableDefinition

The ITableDefinition interface exposes simple methods to create, drop, and alter tables on the data source.

Method Description
AddColumn Adds a new column to a base table.
CreateTable Creates a new base table in the data source.
DropColumn Drops a column from a base table.
DropTable Drops a base table in the data source.

ITableDefinition::AddColumn

Adds a new column to a base table. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.

Note   This provider must be able to open a table exclusively. If any other rowsets on this table are open, this routine will fail.

ITableDefinition::CreateTable

For information on how this interface is implemented, see the OLE DB Programmer’s Reference. For a detailed description of the TABLE properties and the JETOLEDB_TABLE properties supported for this interface, see Appendix A of this document.

Note   This provider must be able to open a table exclusively. If any other rowsets on this table are open, this routine will fail. If you want to add columns to a rowset created with this method, then you must release the rowset before you can add columns to the table schema.

ITableDefinition::DropColumn

This method drops a column from the base table. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.

Note   This provider must be able to open a table exclusively. If any other rowsets on this table are open, this routine will fail.

ITableDefinition::DropTable

Drops a base table in the data source. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.

Note   This provider must be able to open a table exclusively. If any other rowsets on this table are open, this routine will fail.