AdsPackTable

Advantage Client Engine

Removes deleted records from the given table and re-indexes the table

Syntax

UNSIGNED32

AdsPackTable ( ADSHANDLE hTable );

Parameters

hTable (I)

Handle of table.

Remarks

AdsPackTable will remove all deleted records from the specified table. Internal fragmentation in memo files will also be eliminated. The table is then re-indexed. If a progress callback function is available, it will be called during the reindexing. The indexes must be opened during the pack or they will become logically invalid. This operation requires exclusive access to the table, specified during the open.

Note that if encryption was ever enabled on the table, the table cannot be packed unless the encryption is enabled with the correct password.

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.

 

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.

Example

Click Here

See Also

AdsRegisterCallbackFunction

AdsZapTable

AdsOpenTable

AdsEnableEncryption

AdsDecryptTable