Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Send Email Alerts immediately depending upon data/text in a column


Send Email Alerts immediately depending upon data/text in a column

Author
Message
SQListic
SQListic
SSC Veteran
SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)SSC Veteran (258 reputation)

Group: General Forum Members
Points: 258 Visits: 1115
Hi Experts,

We do custom logging into a table. The requirement is that the developers should receive email immediately whenever there is specific data in that column

Any Input is Appreciated


Thanks a ton in adavnce!
eldosepd
eldosepd
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 239
Create a DML trigger and send mail using sp_send_dbmail based on the condition.
durai nagarajan
durai nagarajan
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1107 Visits: 2771
SQListic (7/31/2013)
Hi Experts,

We do custom logging into a table. The requirement is that the developers should receive email immediately whenever there is specific data in that column

Any Input is Appreciated


Thanks a ton in adavnce!


the previous poster advice is fine

but i want to know is this required if it is un wanted data why not it handled on DB or applciation, what are you going to do with that.

Regards
Durai Nagarajan
Chrissy321
Chrissy321
Say Hey Kid
Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)Say Hey Kid (668 reputation)

Group: General Forum Members
Points: 668 Visits: 4571
A trigger would be the most 'immediate' way to do this, there will always be some mail server latency.

I am not a fan of triggers so generally I will create a SQL Server job to check for a condition and run it at some interval. You'd have to consider whether this is immediate enough and whether the repeated polling of you logging table has any performance or server resource implications
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search