Solved

SQL2005: Automated Query and send Emails

Posted on 2009-07-09
3
334 Views
Last Modified: 2012-05-07
I am trying to create a system that would automatically run a query and return results based on a date field of when something is due. Then send out an email with some simple text to each of the records it found (the record would contain the specific email address).

In SQL2000 I would have written a DTS Package but DTS does not exist in SQL2005 and I am totally lost.

Thanks!
Mitch
0
Comment
Question by:Mitchel-T
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 500 total points
ID: 24816976
SSIS is the replacement for DTS in SQL 2005.
0
 

Author Comment

by:Mitchel-T
ID: 24818061
BrandonGalderisi:
Yes...I see that, but can you offer any tips or a tutorial as to how it can be done?
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 24818108
I don't work in SSIS so I won't be of much help there.  All I can say is it should not be THAT different than DTS.

You could always do a simple stored procedure that runs the SQL and uses xp_sendmail to do your mailing.


http://msdn.microsoft.com/en-us/library/ms189505.aspx
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

810 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