Microsoft Knowledge Base

MSQuery: Unable to Delete Multiple Indices

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

SUMMARY

It is not possible to delete multiple indices from a dBASE data source with a single SQL statement. This is by design. The SQL language does not support more than one delete statement in the same SQL statement. For example, the following statement will return a syntax error:

   drop index table.index1,table.index2

WORKAROUND

To work around this problem, delete only one index per SQL statement at any one time. For example the following two separate SQL statements replace the SQL statement above and will work correctly:

   drop index table.index1
   drop index table.index2


KBCategory: kbusage kb3rdparty
KBSubcategory: xlquery

Additional reference words: 1.00 2.00 index indexes remove



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
©1997 Microsoft Corporation. All rights reserved. Legal Notices.