FIX: Reserved Words Invalid Table Names in FoxPro 2.0 SELECT

Last reviewed: October 20, 1997
Article ID: Q112308
2.00 MS-DOS kbprg kberrmsg kbbuglist kbfixlist

The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, version 2.0

SYMPTOMS

Clauses of the FoxPro SQL SELECT command include several reserved words. Examples of reserved words are GROUP, UNION, WHERE, and HAVING. If you create a table using one of these reserved words as the name of the table, (for example, GROUP, which is a common choice for a table name), an SQL SELECT statement that includes a table name that is also a reserved word will produce the following error message:

  Syntax error.

STATUS

Microsoft has confirmed this to be a problem in FoxPro version 2.0 for MS- DOS. This problem was corrected in FoxPro version 2.5 for MS-DOS and FoxPro version 2.5 for Windows.

MORE INFORMATION

In FoxPro version 2.0 for MS-DOS, a reserved word cannot be used in the projection list of the SQL SELECT command. In FoxPro version 2.5, the SQL SELECT command still checks for reserved words but only to end clauses that do not include other syntactic cues.


Additional reference words: FoxDos 2.00 err msg errmsg keyword key word
rqbe buglist2.00 fixlist2.50
KBCategory: kbprg kberrmsg kbbuglist kbfixlist
KBSubcategory:
Solution Type : kbfix


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: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.