The ODBC Cursor Library

Block and scrollable cursors are very useful additions to many applications. However, not all drivers support block and scrollable cursors. The same is true of positioned update and delete statements and SQLSetPos, which are discussed in Chapter 12, “Updating Data.”

Because of this, the ODBC component of the Data Access SDK includes a cursor library. The cursor library implements block, static cursors, positioned update and delete statements, and SQLSetPos for any driver that meets the X/Open Standard CLI conformance level. The cursor library may be redistributed with ODBC applications; see the licensing agreement in the SDK for details.

To use the cursor library, an application sets the SQL_ATTR_ODBC_CURSORS connection attribute before connecting to the data source. For more information about the cursor library, see Appendix F, “ODBC Cursor Library.”