Agile BI Community

Community site for agile business intelligence developers
Welcome to Agile BI Community Sign in | Join | Help
in Search

Browse by Tags

All Tags » SSIS » Flat Files
  • Adding Headers and Footers to Flat Files

    A common question with SSIS is how to handle adding headers and footers to a flat file when the format is different that the data rows. This gets more difficult when the header or footer needs to contain data based on the actual data rows, such as a total or a record count. Basically, this can be accomplished by creating the header or footer in a ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on February 8, 2008
  • Dealing with Unicode and ASCII Text Files

    A recent post on the MSDN forums brought up an interesting problem. The poster was attempting to process a folder of files, all of which had the same format, but some were encoded as ASCII (ANSI, DT_STR, or varchar, if you like the SQL Server data types) and some were encoded as Unicode (DT_WSTR, nvarchar). The initial issue was determining ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on November 8, 2007
  • Processing a Flat File with Header and Detail Rows

    It's been tough finding time to write any content recently, but this was a scenario that came up recently both at work and on the forums, so I decided to write it up. It's another variation on processing flat files (they seem to be endless). This scenario deals with an input file that contains two types of records, headers and details. This ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on July 11, 2007
  • Multi-File Outputs Part 2

    In my previous post, I discussed how to use a script destination to output multiple flat files from a single source. In it, I mentioned that I would post an alternate approach, that didn't require any scripting. So, here it is. This is using the same example data as the previous post, a source file that looks ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on June 3, 2007
  • Multi-File Output Destination Script Component

    Yesterday I posted about using a destination script component to write XML files from a data flow. Today, I'm continuing in the same vein with a post about writing multiple destination files from a destination script component. The inspiration for this was a post on the MSDN forums where a developer described a scenario where he had a single ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on June 2, 2007
  • XML Destination Script Component

    I often hear comments along the lines of ''Why doesn't SSIS have an XML destination?''. Unfortunately, I don't know the answer to that, but I can show you how to implement your own XML destination fairly easily. Thanks to the magic of the script component, it doesn't take much work at all. This was also a good opportunity for me to use a ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on June 1, 2007
  • Dynamically Unpivoting Columns to Rows

    There's been a few questions on the forums recently about taking column values and pivoting them to rows. For example, I might have an input file with 5 columns: a key column and 4 category columns. Key; C1; C2; C3; C41;1;2;3;42;1;2;3;43;1;2;3;44;1;2;3;4 and I'd like an output that has 2 columns (the key and the category ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on May 17, 2007
  • Handling Varying Columns, Part 2

    In Handling Flat Files with Varying Numbers of Columns, I showed an example of parsing a flat file with an inconsistent number of columns. I used a script component, but Jamie commented that the same thing could be accomplished through a Conditional Split and Derived Column transform. So, here's part 2. I added a new data flow to the same ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on May 15, 2007
  • Handling Flat Files with Varying Numbers of Columns

    5/15 Update - I added Part 2 to show how to do the same thing with a Conditional Split and a Derived Column transform, per Jamie's feedback (see the comments on this post). A common question on the forums has been how to handle flat files that have a varying number of columns. For example, one row contains 3 columns, and another ...
    Posted to BI Thoughts and Theories (Weblog) by jwelch on May 7, 2007
Powered by Community Server (Personal Edition), by Telligent Systems