Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to update a database via triggers or store procedure
Message
From
20/07/1999 23:23:34
 
 
To
20/07/1999 23:05:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00243968
Message ID:
00243978
Views:
24
>I'd like to know how I can use just database routines i.e a stored procedure or trigger to update a (different) table than the orginal table. In other words I have a table (A) that I add a record or change a field and I want a store procedure or trigger to add a record or update fields in a different table (B) when table (A) is updated. Both tables would be in the same database or not (what ever is required). I would be using VFP 5.0 and not VFP 6.0 to update data.
>TIA
>John

Just create a function that does what you want (in teh SP area of the database)... and then call the function from the Insert/Update trigger. When you modify a table you will find the trigger fields on the TABLE tab.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform