CdbQueryDef::SetODBCTimeout, GetODBCTimeout Property

The setting or return value is a number representing the number of seconds to wait before a timeout error occurs when a QueryDef is executed on an ODBC database.

Syntax

VOIDSetODBCTimeout(SHORT s);

SHORTGetODBCTimeout(VOID);

Set Parameters

Type Example Description
SHORT s A Short that contains number of seconds to wait before a timeout error occurs.

When the ODBCTimeout property is set to 0, no timeout error occurs.

When the ODBCTimeout property is set to -1, the timeout defaults to the current setting of the QueryTimeout property of the CdbConnection or CdbDatabase object that contains the QueryDef.