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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


In MFC 4.2, CDatabase::SetSynchronousMode became obsolete.

The MFC ODBC classes now use only synchronous processing. To start an asychronous operation, you must directly call the ODBC API function SQLSetConnectOption. For more information, see the topic "Executing Functions Asynchronously" in the Windows SDK.


Although SetSynchronousMode is obsolete, your code will still compile if you use this member function. SetSynchronousMode will simply generate a TRACE message that it is doing nothing.

Header: afxdb.h

Community Additions

© 2015 Microsoft