Solved

Create a trigger to send email notification

Posted on 2006-11-23
1
339 Views
Last Modified: 2012-05-05
Hello experts, I would like to send an email notification to an employee when their car mileage has been approved, but I don't know if this can be done using a trigger.

I have a table CAR_MILEAGE_CLAIM and when the field MGR_APPROVED is updated to 'Yes' i would like to send an email notification to the employee, the email address is in the field EMPLOYEE_EMAIL

Here's what I'd like the email to be: (microsoft outlook 2000)

To: [EMPLOYEE_EMAIL]
Subject: Car Mileage Confirmation & Date
Body: I can add blurb later


Thanks, DomiLama
0
Comment
Question by:DomiLama
1 Comment
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 18003931
check examples:
Implementing Triggers in SQL Server 2000
by Navneeth Diwaker Naik
http://www.sql-server-performance.com/nn_triggers.asp

----
CREATE TRIGGER

http://msdn2.microsoft.com/en-us/library/aa258254(SQL.80).aspx
----
xp_sednmail

http://msdn2.microsoft.com/en-us/library/aa260697(SQL.80).aspx
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now