Arial;Courier New;Symbol;MS Sans Serif;Times New Roman CE;Times New Roman Cyr;Times New Roman Greek;Times New Roman Tur;Times New Roman (Hebrew);Times New Roman (Arabic);Times New Roman Baltic;Times New Roman (Vietnamese);Arial CE;Arial Cyr;Arial Greek;Arial Tur;Arial (Hebrew);Arial (Arabic);Arial Baltic;Arial (Vietnamese);Courier New CE;Courier New Cyr;Courier New Greek;Courier New Tur;Courier New (Hebrew);Courier New (Arabic);Courier New Baltic;Courier New (Vietnamese);AdsCloseSQLStatement

Advantage Client Engine

Releases memory associated with a statement handle

Syntax

UNSIGNED32

AdsCloseSQLStatement ( ADSHANDLE hStatement )

Parameters

hStatement (I)

Handle of statement to free.

Remarks

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.

Example

Click Here

See Also

AdsCreateSQLStatement

AdsCacheOpenCursors

AdsCloseCachedTables