Advantage Client Engine
Modifies the read-only flag associated with the statement handle
UNSIGNED32 |
AdsStmtSetTableReadOnly( ADSHANDLE hStatement, UNSIGNED16 usReadOnly ) |
hStatement (I) |
Handle of an SQL statement created by a call to AdsCreateSQLStatement. |
usReadOnly (I) |
Mode to open the file. Options are ADS_CURSOR_READONLY and ADS_CURSOR_READWRITE. If ADS_CURSOR_READONLY is used then any future cursors resulting from an AdsExecuteSQL statement will be read-only. If the value of ADS_CURSOR_READWRITE is used, then the resulting cursor may be used to update the rowset if a key-set cursor is possible. |
The default value for newly created statement handles is ADS_CURSOR_READWRITE.
Note There cannot be an open cursor associated with the statement when this API is called. If an open cursor exists close it using AdsCloseTable before calling this API.