Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Emails 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
Does anyone know how to have SQL Server 2000 send an email each time a record is added to a particular table? Can SQL also send the record in question as part of the mail?

Thanks in advance, Great and Mighty SQL Server Gurus!!! prodevmg@yahoo.com
ProDev, MS Access Applications B-)

May God bless you in the year 2002.
 
You can do this via an insert trigger if you have setup mail on your SQL Server. look at xp_sendMail.

Hope this helps,

Chris Dukes
 
Thanks,

That did it. Thats great, it even allows you to embed a query to select the data that I want when this happens.

I've just started using SQL Server 2k in the past two months.

Thanks again.
prodevmg@yahoo.com
ProDev, MS Access Applications B-)

May God bless you in the year 2002.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top