PRB: Modifying a Remote View Results in a Syntax Error

Last reviewed: December 14, 1995
Article ID: Q138501
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0

SYMPTOMS

After you create a remote view to gain access to a remote data source through ODBC, any attempt to modify the remote view results in a Syntax Error.

CAUSE

One or more of the field names in the tables included in the remote view contains a space or other special character, such as one of the following:

   ~ !

RESOLUTION

Do not add tables that have spaces in field names to a remote view. Use the underscore (_) character in place of a space. Alternatively, use the CREATE SQL VIEW command to modify the remote view. Follow the same naming conventions used for table and field names.

STATUS

This behavior is by design.

MORE INFORMATION

Visual FoxPro does not support tables that have field names that contain spaces whether they are local or remote tables. The only reason Visual FoxPro sometimes works with spaces in field names is because of the SQL parsing mechanism used.

This behavior depends on the ODBC driver being used to gain access to the remote data. If you experience these errors when attempting to modify a remote view, ensure that none of the field names in the remote view contains a space.


Additional reference words: 3.00 VFoxWin
KBCategory: kbinterop kbprb
KBSubcategory: FxinteropOdbc


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: December 14, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.