>>>Help! Had a customer call in that the .dbc to our program was *missing*. Fixed it by hand with great cost of hair pulled, and thought that was the end of it. It's since reoccurred there once, and now with two other customers at separate locations...
>>>
>>>Is there an easy way to recreate a DBC from tables? What could be causing the DBC to disappear? The other database files (DCX and DCT) are still present, as well as an .FPT and .PAS. I'm about to suspect something in a backup or cleanup routine, but haven't had time to look into it yet.
>>>
>>>Chris.
>>
>>VFP ships with a utility program called Gendbc.prg. This will generate a program which can re-create a database.
>
>Gendbc will create a new blank database and tables. Not a good solution for an existing customer with data they want to keep. ;-)
>
>I had to run it on a different version and add in FREE TABLE, ADD TABLE and comment out CREATE TABLE, but was hoping for something quicker, easier, and more accurate.
>
>Chris.
If you have another computer with exactly the same data structure. you can run gendbc to create a program which your customer can run to recreate the dbc. Having said that, I have never used a dbc myself, one of the reasons for this decision is the vulnerability which caused your problems.