Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Email results from trigger tables
I'm trying to e-mail the results of a trigger that fires on an employee
table.  I'm trying to included the results of either the DELETED or INSERTED
tables, but nothing is returned.  Can xp_sendmail include DELETED or INSERTE
D
table queries in the @query = parameter?

I'm trying to send an e-mail to someone whenever a new employee is added or
deleted.

Thanks.

Report this thread to moderator Post Follow-up to this message
Old Post
Shawn Barrow
08-31-05 04:23 PM


RE: Email results from trigger tables
Regardless that doesn´t work because the new session with XP_sendmail won´
t
know about your deleted tables, the action you want to perform is not
preferable,  because mail sending will be done synchronisly. So if your
mailserver is stuck in a problem and need 5 minutes for sending a mail (for
some reason) your transaction will hold on for that time, if the process
throws an error, your transaction might rollback. You don´t want that, erh 
?
I would suggest (as this is not time critical) to write the data in a table
which is regulary checked for content to be sent.


--
HTH, Jens Suessmeyer.

---
http://www.sqlserver2005.de
---


"Shawn Barrow" wrote:

> I'm trying to e-mail the results of a trigger that fires on an employee
> table.  I'm trying to included the results of either the DELETED or INSERT
ED
> tables, but nothing is returned.  Can xp_sendmail include DELETED or INSER
TED
> table queries in the @query = parameter?
>
> I'm trying to send an e-mail to someone whenever a new employee is added o
r
> deleted.
>
> Thanks.

Report this thread to moderator Post Follow-up to this message
Old Post
Jens Süßmeyer
08-31-05 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 01:23 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006