Frage

I have an error "A meta data argument [table name] value must be specified." coming out when I try to get information about indexes for columns in specified sql table with this code :

metaInfoQuery.ObjectName := 'my_table';
metaInfoQuery.MetaInfoKind := mkIndexFields;
metaInfoQuery.Open;

But this is working just fine :

metaInfoQuery.ObjectName := 'my_table';
metaInfoQuery.MetaInfoKind := mkIndexes;
metaInfoQuery.Open;

-> returns information about index names and other useful index information, but not about for which columns they apply.

So how should I transform my code with 'mkIndexes' so that it can work for 'mkIndexFields' ?

War es hilfreich?

Lösung

Set ObjectName to the name of the Index rather than the name of a table.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top