Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggers
Message
De
17/06/1999 00:17:55
 
 
À
16/06/1999 11:08:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00230426
Message ID:
00230725
Vues:
26
>Hi everyone.
>
>I want to temporarily "deactivate" the triggers on tables for performance reasons.
>
>I know about the DELETE TRIGGER and CREATE TRIGGER commands. What I cannot seem to find is a function that will return me the current value of the trigger. What I want to do is store the triggers in a temporary table, delete them, do my processing and then re-set the triggers based on what I have in the temporary table.
>

You don't need to actually delete the trigger code, only the reference to the trigger function.

To find what the trigger is, use

lcTriggerVal = DBGETPROP("MyTable", "Table", "DeleteTrigger")

when you are donw with your processing, build a string like:

recreate the trigger with:

CREATE TRIGGER ON MyTable FOR DELETE AS (lctriggerVal)
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform