SolvedPrivate

SSIS --Flat file destination editor header

Posted on 2014-03-04
2
33 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
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
Comment Utility
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
Comment Utility
Nice one Rainer, wasn't aware of that property myself! (never needed to export to flat files so far actually :) )
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

My client sends data in an Excel file to me to load them into Staging database. The file contains many sheets that they have same structure. In this article, I would like to share the simple way to load data of multiple sheets by using SSIS.
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…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
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.

763 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

13 Experts available now in Live!

Get 1:1 Help Now