SolvedPrivate

SSIS --Flat file destination editor header

Posted on 2014-03-04
2
35 Views
Last Modified: 2016-02-10
In the header option for flat file destination editor..  I have a  header  which looks like this   " 1245  NEXT   CUSTOMER   03022014 "   
I want  "03022014" which is date to be populated with the date that the package is run so for example  it should have been 03042014 for today
Everything else does not change.  Final output will be a header in a text file.
inputs and suggestions?
0
Comment
Question by:Nana Hemaa
[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 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39906071
Hi,
this is somehow easy when you know where to look at :-)
You cannot set this on the flatfile destination component itself - BUT you can set this on the dataflow component (from the control flow).
So first create a variable or build an expression which generates your desired text. Then go to the control flow tab of your package, click on the data flow component where you have the flatfile destination. Then in the properties of the data flow task go to expressions and select your flatfile destination.Header and use the expression or your variable.
Done.
HTH
Rainer
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39912071
Nice one Rainer, wasn't aware of that property myself! (never needed to export to flat files so far actually :) )
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A couple of weeks ago, my client requested me to implement a SSIS package that allows them to download their files from a FTP server and archives them. Microsoft SSIS is the powerful tool which allows us to proceed multiple files at same time even w…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

749 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