Solved

Create a trigger to send email notification

Posted on 2006-11-23
1
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
Eugene Z 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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

730 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