Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 2nd, 2005, 06:01 AM
Authorized User
 
Join Date: Jul 2005
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail Option in SQL SERVER

Hi,
Any one know how to send e-mail using SQL SERVER.
Please let me know the steps and set up(if any) for sending a mail.

Thanks in advance.

Regards,
Ram.

Reply With Quote
  #2 (permalink)  
Old August 2nd, 2005, 12:08 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make sure SQL Mail is running (test it in Enterprise Manager -> select the server name, then click Support Services -> SQL Mail and test to see if it's working).

Then use the xp_sendmail extended stored procedure.

Format (incl. passing a SQL query to the mail):
EXEC xp_sendmail @Recipients='email@address.com', @Subject='Subject', @message='Message', @query='Select field from table'

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending mail from sql server pady123 SQL Server 2005 0 October 17th, 2008 01:58 AM
Send mail from sql server Manoah SQL Server 2005 1 July 15th, 2008 01:32 AM
Autoclose option in SQL server 2005 express ? jeyaprabhuj SQL Server 2005 1 March 22nd, 2007 02:38 PM
How to Use the Mail Option in ASP tks_muthu Classic ASP Components 1 February 5th, 2005 09:23 AM
Mail Notification in MS SQL Server Kilian SQL Server 2000 0 July 9th, 2003 09:20 AM



All times are GMT -4. The time now is 01:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.