>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)