Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can RI firing be temporarily disabled before opening DBC
Message
From
03/11/2006 08:11:51
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01166856
Message ID:
01166865
Views:
16
HI Bhavbuti,

I generally manually delete the triggers from the table, prior to any maintenance that I don't need the RI for, then add them back in afterwards.

You can use SQLCURSORGETPROP() to get the triggers, bu t I don't think you can use SQLCURSORSETPROP() to add them back in again, so you need to do it manually.

I'd also be interested in any other techniques as this bites me every now and then.

FWIW, I have an audit trail which gets called in th etrigger and I have an application property that can switch it on/off as desired and then test this property at the start of the trigger. maybe you can adjust your RI code to do a similar check?


>Hi all
>
>I am supposed to do a few maintenance task on the DBC. In such a situation the RI starts firing and bringing the exe to a stop. This same problem does not happen if the project is run from the IDE.
>
>Please advise.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform