I need my SQL server to send an email based on certian criteria in a table is met.
i.e. Sales Price >= 200000 then send email.
I plan on adding a trigger to my table to insert some data into a Email_Notification table where it iwll set 1 field (Status) with a Bit datatype to a '0' indicating that the email was not sent. Once the email is sent then the Status field will be updated with a '1' indicating that the email was sent.
Whats the best way to do this? Stored_Proc? SSIS???
I need the email to be sent once my Email_Notification table gets inserted from the Trigger.
Thanks in advnace.
Nick
i.e. Sales Price >= 200000 then send email.
I plan on adding a trigger to my table to insert some data into a Email_Notification table where it iwll set 1 field (Status) with a Bit datatype to a '0' indicating that the email was not sent. Once the email is sent then the Status field will be updated with a '1' indicating that the email was sent.
Whats the best way to do this? Stored_Proc? SSIS???
I need the email to be sent once my Email_Notification table gets inserted from the Trigger.
Thanks in advnace.
Nick