Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Do Oracle ODBC drivers support asynchronous mode? If so, which ones and how?
Hello,
Problem:
What we've tried:
// =====================================================// 1) Check whether the driver supports asynchronous mode
// =====================================================retcode = SQLGetInfo(hdbc1, SQL_ASYNC_MODE, &nAsync, sizeof(nAsync), &nResult);
// =====================================================// 2) Never mind (explained later). Specify that hstmt1 is to be executed asynchronously.
// =====================================================retcode = SQLSetStmtAttr(hstmt1, SQL_ATTR_ASYNC_ENABLE,(void*) SQL_ASYNC_ENABLE_ON, SQL_NTS);
// =====================================================// 3) Try to execute the command
// =====================================================while ((retcode = SQLExecDirect(hstmt1, (unsigned char*)(LPCSTR)sqlCommand, SQL_NTS)) == SQL_STILL_EXECUTING)
It seems to me that Oracle73 driver supports asynchronous mode (despite the fact that whenever asked, using SQLGetInfo(...SQL_ASYNC_MODE...), it replies NO) but Oracle 8i doesn't! How come? If that's the case, will future Oracle ODBC drivers support it?
Any comments appreciated. Thank you in advance.
Pavel Sustr
CRISTAL Software CZ
Received on Mon Apr 03 2000 - 00:00:00 CDT