Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining trigger level
Message
 
À
28/08/2008 03:00:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 7.0
Divers
Thread ID:
01342461
Message ID:
01342513
Vues:
17
>HI All,
>
>Is there an equivalent in SQL to the VFP _Triggerlevel system variable?
>
>The scenario I am trying to cope with is as follows:
>
>When an order line is deleted by the user I want to write a record to another database via the order line delete trigger.
>
>When an order header record is deleted I want the order header delete trigger to delete the child order lines but I do NOT want the order line delete trigger to write records to the other database. I only want to capture the order lines that have been deleted by direct user action.
>
>In VFP I could achieve this by checking the _triggerlevel variable.
>
>TIA,
>
>Andy

Check TRIGGER_NESTLEVEL in BOL
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform