MSQuery: ORA-00911 Error Adding Record to Oracle Table

Last reviewed: September 12, 1996
Article ID: Q121550
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0
  • Microsoft Query for Windows 95, version 2.0

SYMPTOMS

In Microsoft Query, when you use an Oracle data source to create a query, you receive the following error message when you add a record to the table if the Oracle table contains a field with an apostrophe (') character:

   ORA-00911: invalid character

followed by:

   Update failed. Continue editing record?

Note that you also receive the first error message above if you use the INSERT INTO (SQL) statement to add a record to the table when that record contains an apostrophe character.

CAUSE

This error message occurs because you cannot add a record to a table using an Oracle data source when a field in the table contains an apostrophe character. For example, if you add a record to a table that contains a field named "Test o' luck", the error message is displayed, and you cannot continue editing the record.

WORKAROUND

To work around this behavior, do either of the following:

  • Rename the field that contains the apostrophe character using the application that you used to create the table.

    -or-

  • Remove the field that contains the apostrophe from the query. Note that when you use this method, you cannot add a value to the field that contains the apostrophe character.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about how to Add, Edit, or Delete Data (Cue Cards), choose the Search button in Help and type:

   records, adding


KBCategory: kbtool kberrmsg kb3rdparty
KBSubcategory: xlquery

Additional reference words: 1.00 5.00 5.00c err msg



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.