How to send a mail alert on field value change in Table with both value old one and changed on

  • Dear All,

    I have a Table "Customer" which contain a Field "CreditLimit",

    Now I want a Mail alert on change of this filed with both value old credit limit value and New credit limit value.

    Is its possible without trigger??

    Thanks in Advance..

  • Yes.

    If you followed best practice to allow data change by external applications only via stored procedures you could add the OUTPUT clause to the UPDATE statement together with the internal tables "inserted" and "deleted". Based on the result you can send the email using sp_send_dbmail.

    If you change the data directly via your app you'll need to implement the logic as mentioned above in your update statement.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

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

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