KI_INITIALISE
Argument | Enumeration | Purpose |
---|---|---|
handle | Handle opened in "X" or "U" mode | |
eOpt | KDB_INITIALISE_ENUM | |
status | KDB_ERROR_ENUM | Return status |
KI_INITIALISE
This call will truncate a table to zero rows. The table should have been opened by KI_OPEN in "X" or "U" modes to guarantee success.
To improve performance on SQL databases KI_INITIALISE is implemented as TRUNCATE, however if it is called within a transaction the it will DELETE all the rows in the table.
On SQL databases if the table is not open in "U" mode then initialize will check for long term locks outstanding on the table and fail if any exist.