I have a line of code that says:
It works fine, and the Game_ID secondary index is duly created. I have another line that says:
It fails, with "Unexpected end of command. Token: Game_ID Line number: 1".
The table is a BDE table, stored on the local disk. I believe the DROP INDEX is failing because although there is an index called Game_ID associated with table [mytablename], the DROP INDEX command does not take a table name, and thus I think it's not finding the index because I have no way to tell it the table name.
(a) Can anyone tell me what the correct SQl syntax to drop the index would be, or (b) can anyone suggest a non-SQL way to delete the secondary index? -- Doug Burbidge mailto:dougburbidge@yahoo.com
Code:
DM.LeagueDatabase.Execute('CREATE INDEX Game_ID ON ' + TableName + ' (Game, ID);', nil, False, nil);
Code:
DM.LeagueDatabase.Execute('DROP INDEX Game_ID;', nil, False, nil);
The table is a BDE table, stored on the local disk. I believe the DROP INDEX is failing because although there is an index called Game_ID associated with table [mytablename], the DROP INDEX command does not take a table name, and thus I think it's not finding the index because I have no way to tell it the table name.
(a) Can anyone tell me what the correct SQl syntax to drop the index would be, or (b) can anyone suggest a non-SQL way to delete the secondary index? -- Doug Burbidge mailto:dougburbidge@yahoo.com