?
Solved

SSIS to create text file

Posted on 2013-01-28
5
Medium Priority
?
329 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 1200 total points
ID: 38827073
0
 
LVL 11

Assisted Solution

by:SThaya
SThaya earned 1200 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 800 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Suggested Courses

743 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