Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 auto email
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 12/22/2006 :  07:48:38  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Qazi writes "I have table with |ticketno|backupemail|status| i want to send an email to backupemail if the ticket status is active automatically
How can i write a stored procedure for it?
"select ticketno from ticket where status='active'"
and then from here i want to send an email to backup email person to notify that this particular ticket staus is still active."

Flowing Fount of Yak Knowledge

1837 Posts

Posted - 12/22/2006 :  12:15:08  Show Profile  Reply with Quote
You'll need to configure SQL Mail (2000) or Database Mail (2005) and then use the mail stored procedures xp_sendmail (SQL Mail) or sp_send_dbmail (Database Mail) to send email. See Books Online for details and examples.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000