dbTalk Databases Forums  

How do I use a variable in the TO feild of the SSIS Send Mail Task

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


Discuss How do I use a variable in the TO feild of the SSIS Send Mail Task in the microsoft.public.sqlserver.dts forum.



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

Default How do I use a variable in the TO feild of the SSIS Send Mail Task - 07-13-2006 , 03:58 PM






I want to use an Execute SQL Task to load an email address list from a table
and use the variable as the TO field in the Send Mail Task. Got the list
into a variable okay, but can't figure out how to make it work as the TO in
Send Mail. Any ideas?

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

Default Re: How do I use a variable in the TO feild of the SSIS Send Mail Task - 07-15-2006 , 04:47 AM






Hello Arghknork,


Have a look at these articles and you should get the idea.

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)


Changing the DTS Send Mail Task
(http://www.sqldts.com/default.aspx?235)



OR


Shredding a Recordset
(http://www.sqlis.com/default.aspx?59)



Allan

Quote:
I want to use an Execute SQL Task to load an email address list from a
table and use the variable as the TO field in the Send Mail Task. Got
the list into a variable okay, but can't figure out how to make it
work as the TO in Send Mail. Any ideas?




Reply With Quote
  #3  
Old   
Arghknork
 
Posts: n/a

Default Re: How do I use a variable in the TO feild of the SSIS Send Mail - 07-15-2006 , 08:16 AM



Thanks Allan. That last link did the trick. I never was much of a DTS freak
and am just learning SSIS. I'm going to like it. Looks like sqlis.com will
help a lot.

"Allan Mitchell" wrote:

Quote:
Hello Arghknork,


Have a look at these articles and you should get the idea.

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)


Changing the DTS Send Mail Task
(http://www.sqldts.com/default.aspx?235)



OR


Shredding a Recordset
(http://www.sqlis.com/default.aspx?59)



Allan

I want to use an Execute SQL Task to load an email address list from a
table and use the variable as the TO field in the Send Mail Task. Got
the list into a variable okay, but can't figure out how to make it
work as the TO in Send Mail. Any ideas?





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.