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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Load and rename the files
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

354 Posts

Posted - 02/27/2013 :  07:35:10  Show Profile  Reply with Quote
Hi All,

How could i Load the multiple txt files using foreachloop container.
and also I want to renanme file inside the for foreachloop container
after being loaded ..below is my file
mdl_quiz_attempts_11.59.197.4_20130225.txt.done ..

Can any one suggest me any idea or link?

Vijay Sahu

Vijay is here to learn something from you guys.

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 02/27/2013 :  23:20:52  Show Profile  Reply with Quote
see logic used here

you just need to change operation inside file system task to rename file and inside append ".move" to loop variable which gets the filename value

SQL Server MVP

Go to Top of Page

Posting Yak Master

212 Posts

Posted - 02/27/2013 :  23:21:23  Show Profile  Visit prett's Homepage  Reply with Quote
Check this article:

Hope it will work for you!!
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000