PRB: "Line Too Long" Message in RQBE

Last reviewed: April 29, 1996
Article ID: Q100996
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SYMPTOMS

In RQBE, the following error message occurs:

   Line too long

CAUSE

Running an RQBE session on a table with a large number of fields will produce error 18, "Line too long," every time the Do Query button is chosen after a field was moved up in the Output Fields box. This problem occurs because the resulting SELECT statement would exceed the maximum command-line length, which is 2048 characters.

Before the order of the fields changed, RQBE generated a SQL statement of SELECT * FROM <table_name>; however, after the order of fields changed, it had to create a SQL statement similar to the following:

   SELECT <fld1>, <fld2>,....<fldn> FROM <table_name>

RESOLUTION

If the field order is not changed in the Output Fields box, the error does not occur. Therefore, to avoid the problem, do not change the order of the fields.


Additional reference words: FoxDos FoxWin VFoxWin 2.50 2.50a RQBE errmsg
err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxtoolRqbe


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.