ODBC transaction isolation levels

You can use SQLSetConnectAttr to set the transaction isolation level for a connection. The characteristics that determine the transaction isolation level that SAP Sybase IQ provides include the following:

The allow_snapshot_isolation database option must be set to On to use the Snapshot, Statement-snapshot, or Readonly-statement-snapshot settings.

For more information, see SQLSetConnectAttr in the Microsoft ODBC API Reference at http://msdn.microsoft.com/en-us/library/ms713605.aspx.

Example

The following fragment sets the isolation level to Snapshot:

SQLAllocHandle( SQL_HANDLE_DBC, env, &dbc );
SQLSetConnectAttr( dbc, SQL_ATTR_TXN_ISOLATION,
      SA_SQL_TXN_SNAPSHOT, SQL_IS_UINTEGER );