Solved

SSIS Package

Posted on 2011-03-01
2
431 Views
Last Modified: 2012-05-11
Hi,

I am new to using SSIS and i am tasked with creating a flat file that includes a header, detail and footer.

I have a SQL Stored proc that i am using and a SSIS package that i have started to read the stored proc and output a flat file.
I need help mostly on the formatting portion in the stored proc and the data flow/derived columns section.

Does someone know of an existing tutorial that helps when creating space/fixed width delimeted files in SSIS?

Attached is a sample file what the flat file should look like.
FLATFILESAMPLE.TXT
0
Comment
Question by:MoreThanDoubled
2 Comments
 
LVL 16

Accepted Solution

by:
EvilPostIt earned 250 total points
ID: 35015399
Hi,

Does this help?

http://ctrlshiftb.wordpress.com/2009/11/27/using-ssis-to-export-a-fixed-width-flat-file/

As you need a header, body and footer. You would do this by having three seperate point at which it was sent out to the files. You just need to ensure the body & footer section are set to append rather than overwrite.
0
 
LVL 37

Assisted Solution

by:ValentinoV
ValentinoV earned 250 total points
ID: 35015641
It should be possible using the Script component as a destination.  Have a look at the following: http://msdn.microsoft.com/en-us/library/ms135939%28v=SQL.100%29.aspx

There's an example at the bottom on how to create a flat file destination.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert SP in a format for debugging 7 30
email the result out from a T-SQL queries 29 62
all records from previous month 6 45
SQL profiler equivalent in MS-Access 3 41
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now