This section describes Jet-specific implementation of the IColumnsRowset interfaces. This includes IColumnsRowset::GetAvailableColumns and IColumnsRowset::GetColumnsRowset.
This interface supplies complete information about columns in a rowset. The methods in it can be called from a rowset or a command.
Consumers use the methods in IColumnsRowset for detailed and flexible information about the columns of a rowset.
Note For commands that expose ICommandPrepare, the methods on this interface can be called only after the command is prepared. Any calls to methods on IColumnsInfo return DB_E_NOTPREPARED. For commands that do not expose ICommandPrepare, the methods on this interface can be called only after the command text has been set.
Method | Description |
GetAvailableColumns | Returns a list of optional metadata columns that can be supplied by a rowset. |
GetColumnsRowset | Returns a rowset containing metadata about each column in the current rowset. |
Returns a list of optional metadata columns that can be supplied in a column metadata rowset. For information on how this interface is implemented, see the OLE DB Programmer’s Reference.
Returns a rowset containing metadata about each column in the current rowset. This rowset is known as the column metadata rowset and is read-only. For information on how this interface is implemented, see the OLE DB Programmer’s Reference. For a description of the supported DBPROPSET_JETOLEDB_ROWSET and DBPROP_ROWSET properties, see Appendix A of this document.