Solved

SSIS to create text file

Posted on 2013-01-28
5
313 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

705 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

20 Experts available now in Live!

Get 1:1 Help Now