|
AdsReindex Advantage Client Engine |
|
|
Rebuilds all open indexes associated with the given table.
Syntax
UNSIGNED32 |
AdsReindex (ADSHANDLE hTable); |
Parameters
hTable (I) |
Handle of table. |
Remarks
AdsReindex requires exclusive use of the open indexes. A reindex will rebuild all keys in all open index orders for the table. It is unlikely that reindexing will be necessary if only Advantage applications are using data. If other applications not using Advantage are using data, however, there is a possibility for index corruption to occur. Reindexing occurs automatically when calls are made to AdsPackTable and AdsZapTable. Calling AdsReindex on a CDX or ADI index that contains a custom index order will results in all keys being removed from the custom index order.
Note This function is capable of utilizing registered callback functions. To learn more about callback functionality and how it behaves with this function, see Callback Functionality.
Note Calling AdsReindex inside a transaction is illegal.
Note This API only accepts table handles. The use of a cursor handle with this API is illegal and will result in an error. See AdsExecuteSQL for more details.
Example
See Also