﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by J.D. Gonzalez / Article Discussions / Article Discussions by Author  / The SSIS File Sweeper / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 15:28:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Has anyone seen any tool or code that will actually script out the ssis package?</description><pubDate>Tue, 18 May 2010 17:54:21 GMT</pubDate><dc:creator>davidspeare</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>All of the others code should be put in a Try block. The Catch block at a minimum should contain the statement:Dts.TaskResult = Dts.Results.Failure</description><pubDate>Mon, 17 May 2010 22:42:44 GMT</pubDate><dc:creator>ed 42468</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Thanks All...this makes sense now.Gaurav Mittal</description><pubDate>Mon, 17 May 2010 12:44:20 GMT</pubDate><dc:creator>Gaurav.Vinodkumar</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>[quote][b]jreece (5/17/2010)[/b][hr]Gaurav,He left out some important details about the inner loop.  That one should be configured as a Foreach File Enumerator, not and ADO enumerator.  The rest of the instructions will make more sense once you select the right enumerator.  It's on the Collection tab of the Foreach Loop Editor.HTH,Jean[/quote]I appears that I left that out.  There are two foreach loops.  One is to get the data that contains which folders you want to evaluate and the inner foreach loop does the actual deleting.</description><pubDate>Mon, 17 May 2010 12:26:40 GMT</pubDate><dc:creator>J.D. Gonzalez</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Gaurav,He left out some important details about the inner loop.  That one should be configured as a Foreach File Enumerator, not and ADO enumerator.  The rest of the instructions will make more sense once you select the right enumerator.  It's on the Collection tab of the Foreach Loop Editor.HTH,Jean</description><pubDate>Mon, 17 May 2010 11:57:59 GMT</pubDate><dc:creator>jreece</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Thanks for sharing.</description><pubDate>Mon, 17 May 2010 11:42:07 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Hello Mr. Gonzalez,I am confused on how the properties Directory, FileSpec, Resource are assigned to variables...based on my understanding the foreach loop container(Locate Files) has ADO enumerator and in this case the container will not show these propoerties...Are there properties (Directory, FileSpec, Resource ) are assigned in the "Check for Delete" container?If yes then what will be the enumerator and connection string in this container...thanks for help on this.Gaurav Mittal</description><pubDate>Mon, 17 May 2010 10:35:55 GMT</pubDate><dc:creator>Gaurav.Vinodkumar</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Mr.Gonzalez,I apologize for the "File" part. I never saw the part where you said at the top we must add System .IO.</description><pubDate>Mon, 17 May 2010 02:38:27 GMT</pubDate><dc:creator>Manie Verster</dc:creator></item><item><title>RE: The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Dear Mr Gonzalez,Your article lack somewhat in explanation. You keep refering to "your example" and "if we used your example" but then you use variables that was not created in your article. The table you created has the following names:filePath, pattern, daysToKeep, includeSubFoldersYou created variables:daysToKeep, fileMetaData, filePath, includeSubFolders, patternbut all of a sudden you talk about a variable called FileName???? Maybe I am silly, stupid or just incompetent but now I do not know whether you meant filePath or should I create a variable "fileName". I am rather new in ssis but not in visual studio so I sort of find my way around and tried to do this but till I came to the scripting portion and Visual Studio give me an error. "File" is not defined. I am stumped. I do not know enough and would like to use ssis more often. :hehe::hehe::hehe::hehe::hehe::hehe:</description><pubDate>Mon, 17 May 2010 02:23:43 GMT</pubDate><dc:creator>Manie Verster</dc:creator></item><item><title>The SSIS File Sweeper</title><link>http://www.sqlservercentral.com/Forums/Topic922530-220-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Integration+Services+(SSIS)/70100/"&gt;The SSIS File Sweeper&lt;/A&gt;[/B]</description><pubDate>Sat, 15 May 2010 13:55:38 GMT</pubDate><dc:creator>J.D. Gonzalez</dc:creator></item></channel></rss>