Microsoft KB Archive/113214

= 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