AdsStmtSetTableType

Advantage Client Engine

 

Sets the table type used by the statement handle

Syntax

UNSIGNED32

AdsStmtSetTableType( ADSHANDLE hStatement,

UNSIGNED16 usTableType )

Parameters

hStatement (I)

Handle of an SQL statement created by a call to AdsCreateSQLStatement.

usTableType (I)

Type of table. Options are ADS_CDX, ADS_VFP, and ADS_ADT. ADS_NTX is a valid option on a statement handle created on a database connection.

Remarks

The default value for newly created statement handles is ADS_ADT.

If the statement handle was created on a database connection, the usTableType will affect the table created using the CREATE TABLE statement. It also determines the table type of free table(s) that are used in the query.

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.

Example

Click Here

See Also

AdsGetTableOpenOptions

AdsStmtSetTableCharType

AdsStmtSetTableLockType

AdsStmtSetTableReadOnly

AdsStmtSetTableRights