Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a list of Email ID’s of users and I need to send all of them a reminder. So I need to populae it and via SSIS have to send them a reminder. I need to know :-
1)How can I pick email ID’s with separation (;)
2) How to add them to a string variable, separated by ;
3)How to configure the script task(I guess that’s what I will have to use !!!)
Posted

1 solution

Simple way is this (for 1 & 2).

If you can do this:
select EmailId from Emails

Then you can also do this
declare @joined varchar(max)
set @joined = ''
select @joined = @joined + EmailId+ ';' from Emails
select @joined
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900