SolvedPrivate

SSIS --Flat file destination editor header

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DTS Connection Failed 7 70
Query Optimization 14 46
always on switch back after failover 2 35
SSRS Enable Remote Errors 4 27
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 has a dictionary table. They're defining a list of standard naming convention. Now, they are requiring my team to provide us a mechanism how to match new incoming data with existing data in their system.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

825 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