|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, March 08, 2010 10:52 AM
Points: 1,192,
Visits: 2,546
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, February 11, 2010 2:27 AM
Points: 1,249,
Visits: 368
|
|
Really nice article, with a lot of how-to's.
I cannot stop raving about the added flexibility, such as what is described in the article, which will make SSIS king of all ETL tools for years to come.
If you want to really get funky, add an ADO enumerator on top of this (for example, if you are processing an archive with 300 files, all with a datestamp attached, and you want to move them to monthly archive folders which dont exist, have a SQL task that strips out the month and adds distinct months into the ADO enumerator). This will allow you to add folders for the respective month, and a for each file enumerator inside the for each ADO enumerator, with a restrictive wildcard will allow you to only move those files belonging to the month you just created.
Also, add some package configurations, which will allow you to port your solution to any environment.
Key requirement is naturally that the SQL server agent account has write access to the folder.
My 5 cents worth.
~PD
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, March 08, 2010 5:03 AM
Points: 56,
Visits: 97
|
|
Hi, I can't do the example. How can ı do? I couldn't find the window in the first picture ( IN sql 2005 management studio)
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, February 11, 2010 7:52 AM
Points: 3,463,
Visits: 976
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, March 08, 2010 10:52 AM
Points: 1,192,
Visits: 2,546
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 4:24 AM
Points: 1,226,
Visits: 420
|
|
Also, in the example in this article you can do away with the SQL statement and enter the expression directly into the variable.
+ Select the variable and go to it's properties. + Change the option "EvaluateAsExpression" to true, then click in the Expression option and open the expression builder. + Use this to build your variable's value.
Just another way in SSIS to get things done.
Life: it twists and turns like a twisty turny thing
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, April 28, 2009 9:41 AM
Points: 5,
Visits: 22
|
|
wow, what great timing, thanks Ken!
I have just been given an assignment to produce something exactly like this and earlier solutions I found seemed quite cumbersome.
|
|
|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Today @ 7:12 AM
Points: 695,
Visits: 746
|
|
Excellent article. Thank you. This may prove useful.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, April 28, 2009 9:41 AM
Points: 5,
Visits: 22
|
|
found this article yesterday and had my on solution running and also passing the variables between packages by the end of the day!
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, February 17, 2010 3:29 AM
Points: 19,
Visits: 116
|
|
Cheers for this.
Guys could you help me with the next step in my SSIS package. Am using the first part to create my folders but i want to use the ftp task next so i can download the files in to that newly created directory. But am having trouble passing the variable to teh ftp task as teh remote path.
Any help would be great.
|
|
|
|