Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Send email to email IDs in the column

$
0
0

I don't have access to sp_send_dbmail.I am looking for SSIS to achieve this.I have a tbl in SQL Server with three columns userid,pwd,email. I want to send the email to each user with their userid and pwd.How can I acheive this?

I thought of a control flow with     execute Sql task-->sendmailtask-->executesqltask

where the first execute sql task reads the max rownumber and gets the values of that row and send the mail and in the second execute sql task deletes the max row.But I dont know how to loop this,so that it keeps on running till all the mails are sent and the table is empty.

I can use any better or faster approach.It is a one time process.

Thanks for your time and help.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>