Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLMail

Status
Not open for further replies.

SQLServer

Programmer
May 30, 2000
14
US
How do I configure SQL Server 7.0 so that I can send emails from SQL Server using Triggers?<br><br>Thanks<br>-GJK
 
Here is an example from SQL Server's BOL:<br><br><FONT FACE=monospace>USE pubs<br>IF EXISTS (SELECT name FROM sysobjects<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WHERE name = 'reminder' AND type = 'TR')<br>&nbsp;&nbsp;&nbsp;&nbsp;DROP TRIGGER reminder<br>GO<br>CREATE TRIGGER reminder<br>ON titles<br>FOR INSERT, UPDATE, DELETE <br>AS<br>&nbsp;&nbsp;&nbsp;&nbsp;EXEC master..xp_sendmail 'MaryM', <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Don''t forget to print a report for the distributors.'<br><br>GO<br><br></font><br> <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top