Sql 7.0 on w2000
I want to be notified when a value is changed in a column but only for particular rows....
eg. the pertinent data is
Field Name Type Value
---------- ----- -------
Date1 Smalldatetime dd/mm/yy
field1 smallint 0 or -1
Field2 bit 0 or 1
I want the trigger to fire only when Field1 or Field2 is updated
for
any row that has a date of the current day + 7 days.
Two scenarios , mail one person when field2 changes to 1 and mail
someone else when it changes to 0......
I would also like to send the value of the row in the email
I have written only one other trigger and am lost....
Heeelp please....
Lester (lester.dale@compaq.com)
I want to be notified when a value is changed in a column but only for particular rows....
eg. the pertinent data is
Field Name Type Value
---------- ----- -------
Date1 Smalldatetime dd/mm/yy
field1 smallint 0 or -1
Field2 bit 0 or 1
I want the trigger to fire only when Field1 or Field2 is updated
for
any row that has a date of the current day + 7 days.
Two scenarios , mail one person when field2 changes to 1 and mail
someone else when it changes to 0......
I would also like to send the value of the row in the email
I have written only one other trigger and am lost....
Heeelp please....
Lester (lester.dale@compaq.com)