Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SQL2005: Automated Query and send Emails

Posted on 2009-07-09
3
341 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Trigger selecting another database 4 41
Record open by another user 6 64
how to eliminate duplicates in a string variable in t-sql? 30 76
Sql Server group by 10 44
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

839 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