
Here is the principle of the looping script.Ĭreate a new layout and add all needed fields to it. The file could be damaged and you could try to do a recover and test on the recovered version. Something like this should do the trick, but the underlying issue of not being able to access the file over ODBC because of too many indexes seems strange and should be investigated. There may be other plugins that also will do this. This one seems to support the DROP Index statement. More on page 22 of this document: FileMaker 16 SQL ReferenceĮDIT: You can also try using a plugin and running it from within a calculation in a looping script. You could get a list of column (field) names and iterate over these and performing the DROP INDEX statement on each field. You can however create or drop the index from a field when using the database as an ODBC source. There is no functionality in the script engine or calculation engine to affect the database schema. Set Error Capture Set Variable Set Variable Loop Set Variable Set Variable Execute SQL Exit Loop If End Loop NOTE: _BENTEST is a Layout with all the fields from the table I need to work on.


We are trying to access this table via ODBC but cannot due to the huge number of indexes. We have inherited a table with over 500 fields in it and almost all of them are indexed.
