﻿<?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 Tim Mitchell / Article Discussions / Article Discussions by Author  / Creating Dynamic Outputs in SSIS / 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>Tue, 21 May 2013 21:28:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Hi Tim,Great article, your solution worked perfectly for me.  I was wondering if you could point me in the right direction or expand on your article to enable dynamic Folder creations?  I would like to learn more about being able to output a file and create a directory that relates to it:EG:\Site1\Site1.txt\Site2\Site2.txtThanks for your time.</description><pubDate>Wed, 21 Mar 2012 22:03:57 GMT</pubDate><dc:creator>aecusack</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Thanks Tim. Followed this article step by step with no problem.Thomas</description><pubDate>Wed, 10 Nov 2010 07:47:12 GMT</pubDate><dc:creator>Thomas LeBlanc</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Sure, I've got no problem in creating an article for it.  :-)  Should be pretty quick to knock together.</description><pubDate>Wed, 18 Aug 2010 02:13:52 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Dave,That might make a good article in itself :)Tim</description><pubDate>Tue, 17 Aug 2010 10:10:06 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Tim - Thanks for posting.I've managed to create a dynamic ETL process to split data into SQL tables (including creating the table if required) using this process with a few mods and it works like a charm! :-D</description><pubDate>Tue, 17 Aug 2010 09:50:08 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Krishna,Unfortunately, the most difficult scenarios to address are those with variable metadata.  I understand that there are some custom components available for purchase that allow you to declare metadata outside the package (I think CozyRoc has something like this) but I've never used their tools so I can't speak to what they can or can't do.An alternative could be to use a fully scripted solution (most likely a single Script Task) to read the file, create the table, and write the rows to the output.hth,Tim</description><pubDate>Thu, 22 Oct 2009 20:54:24 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Hello,Really nice article. I am newbie in this area.Can I implement the same in my environment? here is the scenario.1. I have lot of different tables data to be extracted to flat files like table1, table2, table3.....tableXXX.2. I need to run select * from each table and capturing the data in flat files by naming the file as table name.I am trying to use foreach loop in the case but getting error...I captured table names (table1, table2 etc.,) and Query (select * from table1, select * from table2 etc., ) to a temp table and then using the variables tablename and query as variables in the foreach loop container and ending with error.So my question is ...can I use yours in my scenario? I heard some where that each table contains different columns and the each query leads to different columns and hence the columns are changing flatfile extraction is not possible. Is that correct?Can you kindly suggest some method to my schenario?Krishna.</description><pubDate>Sun, 11 Oct 2009 09:44:41 GMT</pubDate><dc:creator>vvkp</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Sure, you can hard-code the filename in the config file if you want to use a single output file (rather than one file per iteration of the loop).  Be aware that if you use repeating logic such as a ForEach loop, you'll need to set the flat file output to append rather than overwrite, otherwise you'll only get the data from the last iteration of the loop.hth,Tim</description><pubDate>Tue, 29 Sep 2009 15:09:29 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>I am trying to use the file name itself in the config file.</description><pubDate>Tue, 29 Sep 2009 13:40:28 GMT</pubDate><dc:creator>jananth</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Jananth, you can use a configuration file to set the filename, but when used in the context of this example, the filename declared in the expression would win out at runtime.  Are you trying to define the output folder (rather than the filename) in the config file?  If that's the case, you could set a variable to define the output folder in the config file, and append your dynamic filename to that folder name.Let me know if this answers your question.hth,Tim</description><pubDate>Tue, 29 Sep 2009 12:55:34 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Nice article! I was wondering if I will be able to use configuration file for dynamically naming the output file. I have used dynamic out put file in some of my packages. But I could not use a configuration file for my settings while using file name dynamically. May be I am doing something wrong.</description><pubDate>Tue, 29 Sep 2009 12:28:18 GMT</pubDate><dc:creator>jananth</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>That worked for me.  I was wondering what I did wrong. Thanks Francisco.</description><pubDate>Thu, 24 Sep 2009 15:48:08 GMT</pubDate><dc:creator>tony-591909</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Hi Tim,wonderful article.  However, when setting the vendor variable in the result set tab be sure to rename the property name (result name) to 0. http://www.techsolutions55.com/microsoft/498b01c802393.php.Thanks.Francisco. </description><pubDate>Thu, 24 Sep 2009 14:19:46 GMT</pubDate><dc:creator>Francisco Hurtado</dc:creator></item><item><title>RE: Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Nice article.I try to use the ForEach container as much as I can.  Saves lots of work.</description><pubDate>Thu, 24 Sep 2009 09:10:52 GMT</pubDate><dc:creator>Steve Cullen</dc:creator></item><item><title>Creating Dynamic Outputs in SSIS</title><link>http://www.sqlservercentral.com/Forums/Topic793058-258-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/SSIS/68025/"&gt;Creating Dynamic Outputs in SSIS&lt;/A&gt;[/B]</description><pubDate>Wed, 23 Sep 2009 23:02:18 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item></channel></rss>