SSIS --Flat file destination editor header

Nana Hemaa
Nana Hemaa used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Awarded 2012
Commented:
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
ValentinoVBI Consultant
Most Valuable Expert 2011

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial