Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello


Please confirm me and give the steps and links also, for sending mail using trigger when any insertion update and deletion perform on database or database table.

Thanks
Shubham Gupta
7836062847
Posted

 
Share this answer
 
v2
Comments
Richard Deeming 11-Mar-15 10:15am    
Please don't post links to sites that require a paid subscription to view the answer!
King Fisher 12-Mar-15 0:09am    
But i see the answers before i post. i am sure it doesn't ask for Membership.
Richard Deeming 12-Mar-15 7:13am    
If you access the site from a Google search, it shows the full discussion. If you access it from anywhere else, it demands that you sign up before showing you anything other than the question.

This is a trick they use to increase their ranking, called "First Page Free":
http://webmasters.stackexchange.com/questions/3863/how-does-experts-exchange-get-away-with-tricking-google-users[^]
King Fisher 12-Mar-15 7:59am    
you are Right. :)
King Fisher 12-Mar-15 8:02am    
omg !! Is it a trick to promote the Site. huhh? Ohh well.
Google has numerous suggestions. For example:
sql server 2008 r2 - Send e-mail from a trigger - Stack Overflow[^]

As Aaron Bertrand says in his SO answer, sending email from triggers can cause problems. You should consider his alternative suggestion to populate a queue table and have a scheduled job to send the queued messages.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900