AFX_SQL_ASYNC

AFX_SQL_ASYNC( prs, SQLFunc )

Parameters

prs

A pointer to a CRecordset object or a CDatabase object. Beginning with MFC 4.2, this parameter value is ignored.

SQLFunc

An ODBC API function. For more information about ODBC API functions, see the ODBC SDK Programmer’s Reference.

Remarks

The implementation of this macro changed in MFC 4.2. AFX_SQL_ASYNC simply calls the macro AFX_ODBC_CALL and ignores the prs parameter. In versions of MFC prior to 4.2, AFX_SQL_ASYNC was used to call ODBC API functions that might return SQL_STILL_EXECUTING. If an ODBC API function did return SQL_STILL_EXECUTING, then AFX_SQL_ASYNC would call prs->OnWaitForDataSource.

Note   The MFC ODBC classes now use only synchronous processing. In order to perform an asynchronous operation, you must call the ODBC API function SQLSetConnectOption. For more information, see the topic "Executing Functions Asynchronously" in the ODBC SDK Programmer's Reference.

See Also   AFX_ODBC_CALL, AFX_SQL_SYNC