Hello
I noticed the new triggers in CU 1. I tried to see how it works and add a
message('testing') on trigger OnDatabaseModify
This is on sql 2009 R2.
The trigger is not working. when I run code to modify a record.
customer.findfirst;
customer.name := 'test';
customer.modify;
why isn't it triggering the code?
0
Comments
I'm trying to find out why the triggers do not trigger
I'll give it another try: See http://mibuso.com/blogs/mandyk/2011/01/ ... n-2009-r2/
According to the blog it does
|To-Increase|
So, first you need to do some setup and then do some action on that table. The first time you do an action on a table, the function "GetDatabaseTableTriggerSetup" is called that decides what has to be done in case of an Insert/modify/Delete/Rename of that table.
BTW: If you are on R2, it is best to use OnDatabase-triggers than the OnGlobal-triggers. The OnGlobal-triggers are NOT triggered if you do an insert from code. The OnDatabase-triggers are (I didn't do any extensive testing on it, but it seamed to me like that).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!