Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop SP's from firing
Message
From
10/09/2006 19:43:32
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
 
To
10/09/2006 08:30:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152618
Message ID:
01152681
Views:
20
Thanks Hilmar, It probably wouldn't be a bad enhancement to have Global Maintenance switch setting in VFP i.e. disable RI, Triggers and field default values etc, it would save a bit of coding.

>>Hi,
>>
>>Is there a command to stop Stored proceedures from firing, other than setting a maintenance mode switch in each of the SP's.
>
>I don't think so. A stored procedure is just like any other function, except for the place where it is stored; if you invoke it, it runs.
>
>However, for the special case of referential integrity procedures, if you use some alternative referential integrity system such as TaxRI, the control variables (to let you skip the function) may already be established.
>
>For example: For updating the database, I do an APPEND FROM for each table. This may make the referential integrity triggers fire again, making the update slow, and provoking errors if I happen to copy the child table before the parent table.
>
>In this case, disabling RI (through the variables provided by TaxRI) will solve both of these problems.
>
>Also, when I update a table of purchases, a trigger will fire to update the inventory. Here, updating the inventory once again would not only be slow, it would be plainly wrong. In this case, I re-use the same variable defined by TaxRI, to conditionally abort the update function, and thus avoid the extra update.
>
>HTH,
>
>Hilmar.
Regards N Mc Donald
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform