Solved

RE : SSIS mail task

Posted on 2011-03-11
4
490 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
Comment Utility
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
Comment Utility
Hi,

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

Expert Comment

by:huslayer
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

771 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

10 Experts available now in Live!

Get 1:1 Help Now