Advantage Client Engine
Releases memory associated with a statement handle
UNSIGNED32 |
AdsCloseSQLStatement ( ADSHANDLE hStatement ) |
hStatement (I) |
Handle of statement to free. |
All statement resources are released. If tables were opened during generation of the rowset, they will be closed.
If a cursor associated with this statement exists it is freed as well.
To close a cursor without releasing the statement handle, use AdsCloseTable on the cursor handle.
Note The AdsCacheOpenCursors setting must be set to zero in conjunction with the AdsCloseSQLStatement in order for the cursor and underlying table to be truly closed. Use these functions only when necessary or else possible performance loss may occur. To close all cached tables without modifying AdsCacheOpenCursors, see the AdsCloseCachedTables API.