Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Moving text file using SSIS

Author  Topic 

gvgonong
Starting Member

6 Posts

Posted - 2008-08-15 : 09:26:51
I have a text files that are coming from SAP and it generates in a daily basis (i.e. filename_08082008.txt, and etc.)in the same folder. My question is how can i move each text file without renaming it to the Archive folder after i load it in the DB?

Thanks in Advance.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2008-08-15 : 09:31:59
Have a look at the File System Task in SSIS. There is an option to move files.

Webfred

Too Old to Rock 'n' Roll, Too Young to Die
Go to Top of Page

gvgonong
Starting Member

6 Posts

Posted - 2008-08-15 : 22:55:50
Thanks, i saw rafael's post http://rafael-salas.blogspot.com/2007/03/ssis-file-system-task-move-and-rename.html which is kinda what i looking for. but as i don't need to specify the filename i just want to move everything from the Source Folder to Destination Folder.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-16 : 00:59:47
I think what you need to use is For Each Loop container. There's an option called for each file enumerator which searches for files in a folder and transfer them. more details in below link

http://www.sqlis.com/55.aspx
Go to Top of Page

gvgonong
Starting Member

6 Posts

Posted - 2008-08-16 : 07:59:37
Thank you all,Although the link that you all provide gave an idea. I some how manage to move all of my files to the other destination by using the For Each Loop container, File System Task and a couple of file connections. Thanks.
Go to Top of Page
   

- Advertisement -