SolvedPrivate

SSIS --Flat file destination editor header

Posted on 2014-03-04
2
36 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Here's a requirements document template for an integration project (also known as Extract-Transform-Load or ETL) based on my development experience as an SQL Server Information Services (SSIS) developer over the years.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

724 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