Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Trigger question
Message
 
 
To
04/03/2003 10:58:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00760930
Message ID:
00760951
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform