Both ODBC and DB-Library support client cursors, cursors implemented on the client. In a client cursor, a default result set is used to cache the entire result set on the client and all cursor operations are performed against this client cache. None of the server cursor functionality of Microsoft® SQL Server™ is used. Client cursors support only forward-only and static cursors, not keyset-driven or dynamic cursors.
The DB-Library client cursors were originally implemented before SQL Server supported server cursors. ODBC implements client cursors that use the ODBC Cursor Library, which is intended for use with ODBC drivers that support only the default settings for cursor characteristics. Because both DB-Library and the SQL Server ODBC driver offer full support for cursor operations through server cursors, you should limit the use of client cursors.
Client cursors should be used only to alleviate the restriction that server cursors do not support all Transact-SQL statements or batches. If you need a static, scrolling cursor on an Transact-SQL statement or batch that cannot be executed with a server cursor, consider using a client cursor.
Cursor Functions | ODBC Cursor Library |