?
Solved

SSIS Package

Posted on 2011-03-01
2
Medium Priority
?
437 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 1000 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 1000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

777 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