I need help writing an SSIS package that will create a .csv document and then FTP it

Hi Experts,
I need help writing an SSIS package in SQL Server 2008 R2.

The package needs to run a query, and then place the query results in a .CSV file.  
Once the .CSV file is created, it needs to be saved to a specific folder.
After the file is saved in the folder, it needs to be FTP'd.

How can I do this?

Thank you in advance,
mrotor
mainrotorAsked:
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.

Vikas GargAssociate Principal EngineerCommented:
HI,

You can take a DFT in it Oledb source in which you can write the query to fetch data from source and take flat file as destination.

you file will be stored to the flat file connection manager path.

Then you can use the FTP task to transfer your file to the required destination.
0
APoPhySptCommented:
Hi

I've worked with SSIS packages before, and I think that what you want to achieve is possible.
Let's devide the answer in hand into two groups.

1- Export the results of a query to a CSV:
https://dwbi1.wordpress.com/2011/06/05/ssis-export-query-result-to-a-file/

2- Copy the newly create .csv file to a FTP:
http://www.mssqltips.com/sqlservertip/2884/sql-server-integration-services-ssis-ftp-task-for-data-exchange/

Both links are well explained and have lots of pictures

Best Regards
APoPhySpt
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
mainrotorAuthor Commented:
APoPhySpt,
I will thanks for the information, I will try it.

Regards,
mrotor
0
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 2008

From novice to tech pro — start learning today.