Running a script after update?

How do I run a table level script after a record has been updated? The UpdateRecord function is before the commit to the database.

I ask this because I want to run an SQL script which updates a total in a quote field whenever any of the quote items are updated.

Thanks for the help,

Kurren