SSIS Checking and Moving Files

I have files(images and videos) located on my intranet. My intranet has a user name and password.. I have a FTP connection manager in SSIS(2008) where i provide all the credentials.. server, port, username and password.. I would like to read the file name from a table in SQL Server 2008.. The file name is something like sofa and add a .jpg to the end of it, then check to see if that (sofa.jpg) exists in a folder, if it DOES NOT then I want to ftp the sofa.jpg from the intranet to the folder in which it does not exists.. recomendations? Please do not suggest script task(VB or C) because I dont know it.. If I can avoid the script task I would like to.
LVL 1
cheryl9063Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Jason YousefSr. BI  DeveloperCommented:
Cheryl,
Well the only way around using a script task is uploading everything and overwrite all !

The only good way to do it is using a for each loop, loop over your table, get the file names with extensions into a variable, connect to the ftp and check if it's there or not and upload or move to next file.

or dump all the ftp contents into a table, a SSIS lookup to check what's there and update a flag column marked for not to upload.

I wrote a blog post about that
http://asqlb.blogspot.com/2011/06/ftp-file-and-folders-list-into-sql.html

do you know which files goes to which folders? or how's ur table is structured? screen shot please....

Also you posted your question at the "Server Side Includes (SSI)" zone, that's not SSIS, there's a zone called "SSAS_SSIS" that what you need to post at.

SSI is a scripting language
http://en.wikipedia.org/wiki/Server_Side_Includes


Regards,
Jason
0

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
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
Web Languages and Standards

From novice to tech pro — start learning today.