The information in this article applies to:
SYMPTOMSWhen the SQLGetStmtOption (in ODBC 2.x) or SQLGetStmtAttr API (in ODBC 3.0 or 3.6) is used to get the maximum rowset size with the ODBC 3.0 or 3.6 Driver Manager, the wrong value is returned. SQL State 01S02 is returned while the rowset size is specified initially. CAUSEThe Driver Manager caches the initial value that was submitted as the rowset size. Instead of returning the corrected rowset size, the Driver Manager sends back the cached value. WORKAROUNDTo work around this problem, use the ODBC version 3.60.00.3103 or later, which has not yet been officially released. This bug has been fixed in that version of the ODBC driver.STATUS
Microsoft has confirmed this to be a problem in the ODBC driver versions
2.x, 3.0, and 3.6.
MORE INFORMATION
According to the ODBC specifications, when the size of the rowset specified
by the client exceeds the maximum permitted value for a data source, the
driver substitutes the maximum permitted value as the rowset size and
returns the SQL State 01S02. The SQLGetStmtOption (in ODBC 2.x) or
SQLGetStmtAttr API (in ODBC 3.0 or 3.6) is used to get the rowset size. The
ODBC 3.0 or 3.6 Driver Manager returns the wrong rowset size.
Additional query words: max datatype row set datasource
Keywords : kbODBC351bug odbcAPI odbcDrivermgr |
Last Reviewed: November 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |