The information in this article applies to:
SYMPTOMS
If an Oracle table name contains spaces in it, the MFC OLE DB AppWizard
will generate incorrect SQL Statements. This problem happens when using
either the OLE DB Provider for ODBC (using the Microsoft Oracle ODBC
Driver) or the OLE DB Provider for Oracle.
RESOLUTIONThe solution is to remove one of the slashes from each part of the SQL Statement. The SQL Statement should resemble the following:
Although this corrects the SELECT statement, the COLUMN_MAP and Data
members for the CMytable class are not created, because of the original
syntax problem. The datamembers and COLUMN_MAPs must be manually created. A
better solution would be to not use spaces in table names.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce BehaviorCreate a DSN pointing to an Oracle Server. Run the following DDL statement using SQL Plus (Oracle's client query tool):
Start Visual C++ version 6.0.
When you attempt to build the application, you will receive error C2017:
illegal escape sequence.After testing this situation, run the following DDL script to remove the table.
Additional query words: kbvc600bug kbDatabase kbOLEDB kbOracle spaces
Keywords : kbDatabase kbOLEDB kbOracle kbVC600bug |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |