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. |
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.
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.
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.
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.