Article ID: 120108
Article Last Modified on 7/27/2001
create table test (col1 char(5), col2 char(5))
SQLPrepare: select * from test order by col2
Loop
SQLExecute
SQLFetch
SQLFreeStmt/SQL_CLOSE
End Loop
At the 925th iteration of the above loop, SQLExecute will fail with
SQL_ERROR.
Table with Iterations to SQL_ERROR
-----------------------------------------------------
2 columns, 1 row 925
2 columns, 1000 rows 925
6 columns, 1000 rows 919
10 columns, 1000 rows 599
15 columns, 1000 rows 476
17 columns, 1000 rows 399
19 columns, 1000 rows 393
MFC Database class users will see the same behavior with the following
loop, after the same number of iterations as above:
CRecordSet::Open, szSQLStr = select * from test order by col2
Begin Loop
CRecordSet::Requery
CRecordSet::MoveNext
End Loop
Additional query words: 1.01.1928 Desktop Database Drivers Simba MSVC Visual C++
Keywords: kbbug KB120108