SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 for each loop files in folder starting with @[User
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

shanmugaraj
Posting Yak Master

219 Posts

Posted - 12/02/2012 :  02:55:38  Show Profile  Send shanmugaraj a Yahoo! Message  Reply with Quote
I have an folder with multiple files .
For passing the folder, i have set the Directory expression as
@[User::strFinSourceFolder] + "\\"

I want to select files starting with USA.
File loop works fine when i add the Files textbox as
USA*.csv

I add the parameter instead of USA in the files textbox as
@[User::strFileNameStart] + "*.csv"

But things are not even entering into the loop ...
Please help me how to set the filename start in the for each loop



THANKS
SHANMUGARAJ
nshanmugaraj@gmail.com

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/02/2012 :  03:22:15  Show Profile  Reply with Quote
How were you setting this? You should be setting this inside Connections tab of for each loop in expression builder for the FileSpec property

see

http://i1064.photobucket.com/albums/u362/visakh16/SSISExpFEL.png

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

shanmugaraj
Posting Yak Master

219 Posts

Posted - 12/02/2012 :  03:35:40  Show Profile  Send shanmugaraj a Yahoo! Message  Reply with Quote
thanks
i got the soln
quote:
Originally posted by visakh16

How were you setting this? You should be setting this inside Connections tab of for each loop in expression builder for the FileSpec property

see

http://i1064.photobucket.com/albums/u362/visakh16/SSISExpFEL.png

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/





THANKS
SHANMUGARAJ
nshanmugaraj@gmail.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 12/02/2012 :  03:38:56  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.08 seconds. Powered By: Snitz Forums 2000