Here is an example from SQL Server's BOL:<br><br><FONT FACE=monospace>USE pubs<br>IF EXISTS (SELECT name FROM sysobjects<br> WHERE name = 'reminder' AND type = 'TR')<br> DROP TRIGGER reminder<br>GO<br>CREATE TRIGGER reminder<br>ON titles<br>FOR INSERT, UPDATE, DELETE <br>AS<br> EXEC master..xp_sendmail 'MaryM', <br> '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=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.