The INDEXES rowset identifies the indexes defined in the catalog that are owned by a given user.
The INDEXES rowset contains the following columns:
Column name | Type indicator | Description |
TABLE_CATALOG | DBTYPE_WSTR | Catalog name. NULL if the provider does not support catalogs. |
TABLE_SCHEMA | DBTYPE_WSTR | Unqualified schema name. NULL if the provider does not support schemas. |
TABLE_NAME | DBTYPE_WSTR | Table name. |
INDEX_CATALOG | DBTYPE_WSTR | Catalog name. NULL if the provider does not support catalogs. |
INDEX_SCHEMA | DBTYPE_WSTR | Unqualified schema name. NULL if the provider does not support schemas. |
INDEX_NAME | DBTYPE_WSTR | Index name. |
PRIMARY_KEY | DBTYPE_BOOL | Whether the index represents the primary key on the table. NULL if this is not known. |
UNIQUE | DBTYPE_BOOL | Specifies whether index keys must be unique, that is:
|
CLUSTERED | DBTYPE_BOOL | Specifies whether an index is clustered, that is:
|
TYPE | DBTYPE_UI2 | Specifies the type of the index, that is:
|
FILL_FACTOR | DBTYPE_I4 | For a B+-tree index, this property represents the storage use factor of page nodes during the creation of the index. The value is an integer from 1 to 100 representing the percentage of use of an index node. For a linear hash index, this property represents the storage use of the entire hash structure (the ratio of used area to total allocated area) before a file structure expansion occurs. |
INITIAL_SIZE | DBTYPE_I4 | Specifies whether null keys are allowed, that is:
|
SORT_BOOKMARKS | DBTYPE_BOOL | Specifies how the index treats repeated keys, that is:
|
AUTO_UPDATE | DBTYPE_BOOL | Specifies whether the index is maintained automatically when changes are made to the corresponding base table, that is:
|
NULL_COLLATION | DBTYPE_I4 | Specifies how NULLs are collated in the index, that is, one of:
|
ORDINAL_POSITION | DBTYPE_UI4 | Ordinal position of the column in the index, starting with one. |
COLUMN_NAME | DBTYPE_WSTR | Column name. The column, together with the COLUMN_GUID and COLUMN_PROPID columns, forms the column ID. One or more of these columns will be NULL depending on which elements of the DBID structure the provider uses. |
COLUMN_GUID | DBTYPE_GUID | Column GUID. |
COLUMN_PROPID | DBTYPE_UI4 | Column property ID. |
COLLATION | DBTYPE_I2 | Specifies values as one of:
|
CARDINALITY | DBTYPE_I4 | Number of unique values in the index. |
PAGES | DBTYPE_I4 | Number of pages used to store the index. |
FILTER_CONDITION | DBTYPE_WSTR | The WHERE clause identifying the filtering restriction. |
Default Sort Order: UNIQUE_TYPE, INDEX_CATALOG, INDEX_SCHEMA, INDEX_NAME, ORDINAL_POSITION.