Solved

SSIS Package

Posted on 2011-03-01
2
436 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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