[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Create a trigger to send email notification

Posted on 2006-11-23
1
Medium Priority
?
354 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 43

Accepted Solution

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

650 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