Auto Email From Insert to Table

  • I'm looking for some hints on how to setup an auto email to myself if certain criteria is inserted into a certain table in a certain field so I can monitor if certain data is not correct. For example I have a code that is required to go into a Sale Analysis field, if certain rules aren't followed then a default value goes in. I want to be able to know if this happens.

    Presumably I can use something like xp_SendMail and a trigger. Obviously keeping the over head down is also a requirement.

    Thanks in advance.

    Scott

  • Yes, a trigger is probably the best, the alternative being to do a select against the table periodically (starting whereever you left off last). XP_Sendmail is not bad approach for this.

    Andy

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply