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.
PaShu
-- Free audio & video emails, greeting cards and forums Talkway - http://www.talkway.com - Talk more ways (sm)Received on Wed Apr 05 2000 - 00:00:00 CDT