SQLCloseCursor_ODBC

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work and plan to modify applications that currently use this feature. Microsoft recommends using the driver's cursor functionality.

This topic discusses the use of the SQLCloseCursor function in the cursor library. For general information about SQLCloseCursor, see SQLCloseCursor Function.

The cursor library does not support calling SQLCloseCursor without an open cursor. Attempting this will return SQLSTATE 24000 (Invalid cursor state). Calling SQLFreeStmt with an Option of SQL_CLOSE when no cursor is open is supported by the cursor library.