>>Naomi:
>>
>>I'm aware that I can use a flag or remove the rule temporarily, BUT that means that I have to remember to execute something before doing a MODI STRU, and I could concievable forget. It would be better if there was somehow a way that the procedure could know that it is in the middle of a MODI STRU operation.
>
>At Bata/Bolivia, I did all structural changes in an empty copy of the database, i.e., zero records per table. Then, I had a procedure that updated either my test data, or the data in the production database, basically doing an APPEND FROM for every table. This made it very easy to update changes to the database for the production database.
>
>As part of this procedure, I disabled referential integrity (using TaxRI instead of standard VFP RI), and some triggers, through the setting of appropriate variables.
That's a good idea and I was thinking about the same approach too, but it doesn't answer the original question.
If it's not broken, fix it until it is.
My Blog