The information in this article applies to:
SYMPTOMSWhen attempting to issue a SQLSetPos() (UPDATE a record) on a SELECT statement that uses table names in the field/column list, you will receive the following error message: A simple SELECT statement similar to the following causes the error:
Also, using alias names for the table, as in the following, also causes the error:
CAUSEThis is a bug in the statement parsing routine for the Microsoft Oracle ODBC driver. RESOLUTIONA supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. http://www.microsoft.com/support/supportnet/overview/overview.aspThe QFE is for the MDAC 2.1 GA stack. The English version of this fix should have the following file attributes or later:
NOTE: If you are installing this QFE onto a Windows 95 computer, or a computer with the original release of Windows 98, please read the information included in Migrate.exe, which is included in the download. WORKAROUNDTo work around this problem, use coded SQL UPDATE statements to send your data to the database if your SELECT statement contains table names in the field list.STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been fixed in Microsoft ActiveX Data Objects versions 2.1 Service Pack 2 and later. MORE INFORMATIONSQLSetPos() ODBC API is used by several different Microsoft technologies such as ADO, RDO, MFC ODBC, and straight ODBC APIs. You may see the above error message if you are updating data via these database API or object technologies. Additional query words:
Keywords : kbADO kbDatabase kbDriver kbODBC kbOracle kbGrpVCDB kbGrpMDAC kbMDAC210SP2fix |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |