ODBCDatabase.Timeout

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aODBCDatabase.Timeout = newIntegerValue
or
IntegerValue = aODBCDatabase.Timeout

Supported for all project types and targets.

The timeout value (in seconds) to be used when connecting to the database. The default is 0, which will use the ODBC driver value.

Notes

The timeout value is set before actually connecting to the database. The property can be read, but the value that was previously set will be returned. The value is not returned from the driver. To get the actual value from the driver, use the ConnectionAttribute method with the ODBCConstant.SQL_LOGIN_TIMEOUT parameter.

Example

Set the timeout to 60 seconds:

// db is an existing ODBCDatabase connection
db.Timeout = 60