Contents Index Insensitive cursors Asensitive cursors

ASA Programming Guide
  Using SQL in Applications
    Adaptive Server Anywhere cursors

Sensitive cursors


These cursors have sensitive membership, order, and values.

Sensitive cursors can be used for read-only or updatable cursor types.

Standards 

Sensitive cursors correspond to the ISO/ANSI standard definition of sensitive cursors, and to ODBC dynamic cursors.

Programming interfaces 
Interface Cursor type Comment
ODBC, OLE DB, and ADO Dynamic
Embedded SQL SENSITIVE Also supplied in response to a request for a DYNAMIC SCROLL cursor when no work table is required and PREFETCH is off.
Description 

All changes are visible through the cursor, including changes through the cursor and from other transactions. Higher isolation levels may hide some changes made in other transactions because of locking.

Changes to cursor membership, order, and all column values are all visible. For example, if a sensitive cursor contains a join, and one of the values of one of the underlying tables is modified, then all result rows composed from that base row show the new value. Result set membership and order may change at each fetch.

Sensitive cursors always return rows that match the query's selection criteria, and are in the order specified by any ORDER BY clause. Updates may affect the membership, order, and values of the result set.

The requirements of sensitive cursors place restrictions on the implementation of sensitive cursors:


Contents Index Insensitive cursors Asensitive cursors