Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Trigger question
Message
 
 
À
04/03/2003 10:58:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00760930
Message ID:
00760951
Vues:
10
This message has been marked as the solution to the initial question of the thread.
For a VFP DBC this is correct. You can not replace data in an UPDATE trigger because this is also considered an UPDATE that fires the UPDATE trigger. So you could be caught in an endless loop. However, this is not the case for SQL databases. An update trigger can update values of columns in the table being updated because the SQL used to update the table is intercepted by the update trigger where you can set the "NEW" values of the columns to whatever you want before the data is posted to the table.

What you should use for a DBC is the Record Validation rule in the table.

>Hi
>
>Is it right that you can't issue a REPLACE for the "updating" table in an UPDATE TRIGGER?
>
>If it is right, then that isn't right, or it's not right, why the restriction?
>
>Thanks
>Kev
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform