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

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Is this possible

Author  Topic 

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2008-09-17 : 08:47:19
I have an .net app that sends emails out to the client. They want to send the emails out at a certain time. Can I do this with sql 2005

Dave
Helixpoint Web Development
http://www.helixpoint.com

YellowBug
Aged Yak Warrior

616 Posts

Posted - 2008-09-17 : 09:03:54
You can use SQL Server Agent to schedule the task for a certain time.
Can send emails using msdb..sp_send_dbmail or a batch file calling your application.
Go to Top of Page

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2008-09-17 : 10:08:56
I get this error in 2005

Could not find stored procedure 'sp_send_dbmail'

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-09-17 : 10:11:04
Because you are not using MSDB database.
Go to Top of Page

YellowBug
Aged Yak Warrior

616 Posts

Posted - 2008-09-17 : 10:12:09
Look it up in BOL.

The procedure is in the MSDB database.
Go to Top of Page

helixpoint
Constraint Violating Yak Guru

291 Posts

Posted - 2008-09-17 : 10:44:09
Ok. I have it running. Now I have a table with the following fields "recipient, subject, body" the table name is emailsToSend. I want to set up a job to run that will go threw that table to see if there are and records and send them. Is this possible? If so, how would I do this? You guys are great. It would take me a looong time to figure this out.

Dave
Helixpoint Web Development
http://www.helixpoint.com
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-09-17 : 10:46:59
Goto SQL Server Agent- jobs-Setup.
Go to Top of Page
   

- Advertisement -