Solved

RE : SSIS mail task

Posted on 2011-03-11
4
491 Views
Last Modified: 2013-11-10
Hi,

Please help to let me know how can i send the attachments through Mail task in SSIS.

Attachment is placed under one folder in my disk and file name is dynamic so Mail task should pick up attachment path from my variable.

Thanks
0
Comment
Question by:rajneesh1978
4 Comments
 
LVL 6

Expert Comment

by:jonaska
ID: 35107912
You need to use Expressions. Look at the attached screencast.
jonaska-423645.flv
0
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 35108380
Hi,

Save file path in Variable and assign it to FileAttachment in expression. Screen shot
0
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 35108760
Hello,
You can use the file watcher task to look for a specific EXTENSION and populate a variable with the file name and use that variable in the attachment expression as Patel Mentioned.

Please let me know if you need more info.
Thanks
Jason

file watcher task:  http://www.sqlis.com/post/file-watcher-task.aspx
0
 

Author Closing Comment

by:rajneesh1978
ID: 35178165
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now