Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CDatabase::GetCursorRollbackBehavior

Call this member function to determine how a Rollback operation affects cursors on open recordset objects.

int GetCursorRollbackBehavior( ) const;

A value indicating the effect of transactions on open recordset objects. For details, see Remarks.

The following table lists the possible return values for GetCursorRollbackBehavior and the corresponding effect on the open recordset.

Return value

Effect on CRecordset objects

SQL_CB_CLOSE

Call CRecordset::Requery immediately following the transaction rollback.

SQL_CB_DELETE

Call CRecordset::Close immediately following the transaction rollback.

SQL_CB_PRESERVE

Proceed normally with CRecordset operations.

For more information about this return value, see the ODBC API function SQLGetInfo in the Windows SDK. For more information about transactions, see the article Transaction (ODBC).

Header: afxdb.h

Show:
© 2015 Microsoft