Solved

SSIS Package

Posted on 2011-03-01
2
430 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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
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…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

11 Experts available now in Live!

Get 1:1 Help Now