>Hi all, I was thinking if it was possible to retrieve informations about table structures and indexes directly from the database.
>I know it contains all the information about the related tables but I don't know how to get them.
You'd find all required commands and functions in "gendbc.PRG" that ships with VFP
MODIFY COMMAND HOME()+'tools\gendbc\gendbc'
See also
http://fox.wikis.com/wc.dll?Wiki~GenDBCX>What i was trying to do is a routine which allows me to rebuild tables and indexes. I am having more and more situations of corrupted tables.
> How come ? And above all how can I get rid of this ?
There can be various reasons, most of them boiling down either to unreliable power supplies, PC hardware, network, and/or aggressive 3rd-party things like certain AntiVirus tools for instance.
hth
-Stefan