Solved

RE : SSIS mail task

Posted on 2011-03-11
4
493 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

820 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