Solved

SQL2005: Automated Query and send Emails

Posted on 2009-07-09
3
312 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
Comment Utility
SSIS is the replacement for DTS in SQL 2005.
0
 

Author Comment

by:Mitchel-T
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now