dbTalk Databases Forums  

send emails via DTS?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss send emails via DTS? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matt
 
Posts: n/a

Default send emails via DTS? - 04-04-2004 , 01:32 AM






If I have emails stored in a table, it is possible for DTS to schedule the
task to send out those emails?? Some people told me to use DTS for
scheduling jobs?

Please advise. Thanks!!



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: send emails via DTS? - 04-04-2004 , 09:59 AM






What do you mean by emails stored in a table. Do you mean the composite
info required for an Email i.e., To, From, Message etc.

You could certainly use DTS

You would loop on the information in the table and then populate the
properties of the Sendmail task each time. You could also do this without
DTS using a cursor.

DTS has nothing to do with Scheduling. SQL Server Agent or A.N.Other
Scheduling tool is required to schedule packages.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Matt" <mattloude (AT) hotmail (DOT) com> wrote

Quote:
If I have emails stored in a table, it is possible for DTS to schedule the
task to send out those emails?? Some people told me to use DTS for
scheduling jobs?

Please advise. Thanks!!





Reply With Quote
  #3  
Old   
Sanchan Sahai Saxena
 
Posts: n/a

Default Re: send emails via DTS? - 04-12-2004 , 04:43 PM



Onething that i would like to know before suggesting a solution - what
exactly do you have in your database?

Is it just the fields and you want to construct an email and send it out?
If so, then you need to write a program that will fetch the data from the
table, construct the email and send it using any mail program or SMTP

If not and if your table has columns like TO, FROM etc., then you can
certainly use DTS. However, if you want to have it predefined to run at
select frequencies, then you might like to rope in a third party product or
inbuilt services of SQL Server Agent.

Both ways, you can achieve the desired functionality.

Sanchan [MSFT]

sanchans (AT) online (DOT) microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.