I think this is the right forum for this... if not can someone point me in the right direction?
I am looking to create a SQL trigger for when a new record is inserted into table 'Dispatch'. the trigger would then send an e-mail to someone saying what the new dispatch was.
I have the code for the insert, but I don't want an e-mail for every new dispatch, I only want one for dispatches which meet a certain criteria (the criteria is when one of the columns in the Dispatch record is equal to 'CIF')... So basically I'm wondering if a trigger can be set to only send an e-mail based on the data in the new record.. Thanks!
Jason
I am looking to create a SQL trigger for when a new record is inserted into table 'Dispatch'. the trigger would then send an e-mail to someone saying what the new dispatch was.
I have the code for the insert, but I don't want an e-mail for every new dispatch, I only want one for dispatches which meet a certain criteria (the criteria is when one of the columns in the Dispatch record is equal to 'CIF')... So basically I'm wondering if a trigger can be set to only send an e-mail based on the data in the new record.. Thanks!
Jason