Drops a column from the base table.
HRESULT DropColumn( DBID *pTableID, DBID *pColumnID);
[in] A pointer to the DBID of the table from which to drop the column.
[in] A pointer to the DBID of the column to drop.
The method succeeded, and the column was dropped from the base table.
A provider-specific error occurred.
pTableID or pColumnID was a null pointer.
The column specified in *pColumnID does not exist in the specified table.
The provider could not drop the column because pColumnID was referenced in a view definition.
The provider could not drop the column because pColumnID was referenced in a constraint belonging to a table other than pTableID.
The provider could not drop the column because pColumnID was referenced, along with one or more other columns, in a constraint definition on pTableID.
The specified table does not exist in the current data store.
The specified table was in use.
The consumer did not have sufficient permission to drop the column.
The provider supports transactional DDL, the session is participating in a transaction, and the value of DBPROP_SUPPORTEDTXNDDL is DBPROPVAL_TC_DML.
If ITableDefinition::DropColumn returns any errors, the column is not dropped.
If the session is participating in a transaction, if DBPROP_SUPPORTEDTXNDDL is DBPROPVAL_TC_DDL_IGNORE, and if the method succeeds, the operation is complete and is unaffected by subsequent calls to abort or commit the transaction.
If the session is participating in a transaction, if DBPROP_SUPPORTEDTXNDDL is DBPROPVAL_TC_DDL_COMMIT, and if the method succeeds, the transaction is committed without retention. No new transaction is created. Any new work done on the session is outside the scope of a transaction. Attempting to explicitly commit or abort when there is no outstanding transaction returns an error.