Solved

Send mail task SSIS - Urgent help

Posted on 2008-10-22
2
721 Views
Last Modified: 2013-11-10
I need to pick up 4 files saved within a specific location daily via an SSIS package.
I need to email these 4 reports together to one recipient based on the name & Date within the File name.
Basically the files are name e.g. SITE_Spend_22102008.csv for example and have the current date at the end of the file name in that format. I need to create a task to email these reports daily selecting the correct files from my location based on their naming convention and date.
I can't seem to figure out how to do this. Can I use the send mail task in SSIS and add multiple attachments, and how can I specify the date in the naming convention.

Please help this is Urgent and I need done before today....?
0
Comment
Question by:EHardie
  • 2
2 Comments
 
LVL 17

Expert Comment

by:HoggZilla
Comment Utility
I realize this question is somewhat duplicated, but here is a reference for looping through the files in a folder, reading and processing each filename. Might be useful for your task.
Good luck.
http://www.sqlis.com/55.aspx
 
0
 
LVL 17

Accepted Solution

by:
HoggZilla earned 500 total points
Comment Utility
Don't believe the help comment at the bottom of the Send Mail Task Editor. The files should be separated by pips (|), not semicolons.
sendmail.bmp
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

762 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

6 Experts available now in Live!

Get 1:1 Help Now