Solved

SSIS to create text file

Posted on 2013-01-28
5
327 Views
Last Modified: 2016-02-10
I have a new wages exports process.

I need to export data to a text file for import into paycor

The text file consists of a header record (1 line)
detail records (however many employees...one per)
trailer record (1 line)

I have no problem creating the data....
However, I'm supposed to build this in SSIS.

So...in SSIS, should I build the three records seperately and then appeand the detail and the trailer record to the header?

Or Build the whole thing in sql itself?

need some direction in this.
0
Comment
Question by:lrbrister
[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
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
SThaya earned 300 total points
ID: 38827073
0
 
LVL 11

Assisted Solution

by:SThaya
SThaya earned 300 total points
ID: 38827079
0
 

Author Comment

by:lrbrister
ID: 38827211
Maybe I should have been more specific.
I need to marry the
1 header line which is fixed width 6 columns
Many detail lines which is fixed width's 10 columns1 Trailer line which is fixed width 4 columns

So...
In SSIS, can I get the three in sequence, and then append the 3 segments or files together?
0
 
LVL 6

Assisted Solution

by:liija
liija earned 200 total points
ID: 38827940
I think you were specific enough.

If they are fixed, it should be fairly straight forward.
Write data to 'data'file in Data Flow task, then append the files into one with Execute Process task (data + header and footer)
0
 

Author Closing Comment

by:lrbrister
ID: 38828383
Thanks
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

718 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