Strip email attachments to import to SQL 2012


We have a requirement to get incoming email attachments stripped from their original email and imported into SQL 2012.  At this stage they're looking to create a new machine running the Sperry outlook add-in software to strip attachments from emails and save them to a folder that is then imported into SQL 2012.  

I know this would work, as it is something that we have already tested, however it does introduce another point of failure.  Just trying to find out if there are other options that minimize the components in the process and simply use Exchange and SQL.

Currently we are running SQL 2012 and the email system is Exchange 2010 SP1.

If anyone knows a way to do this without the 3rd party computer\software it would be appreciated.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Barry CunneyCommented:
Hi Dave,
One option may be to look at using Powershell/SSIS to do the work, all contained in a single SQL Server job.

In SQL Server you can create a job step of type Powershell, so in such a job step you could use powershell to interface with Exchange Services to save off the attachments into a folder.

Then you could design a pre-defined SSIS package which you could execute from a second step in the same SQL server job.
The SSIS package would have a For Each Loop container which would loop through all the files in your 'attachment' folder and in the loop would be a Data Flow task which would actually import the data from the attachment files into the database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
biggles70Author Commented:
Looks like this is a workable solution, however due to time frames the DBA won't have time to look into it further.  Thanks for the info, as I think he might revisit when time permits.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.