dbTalk Databases Forums  

Adding a header row to DTS Destination file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Adding a header row to DTS Destination file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stever
 
Posts: n/a

Default Adding a header row to DTS Destination file - 09-08-2003 , 10:04 AM






Is it possible to add a header column to a DTS Destination
file? I am able to output the row by row transformations,
but what a bout adding a one time header row to the out
put?

Tahnks for the help!
Stever

Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: Adding a header row to DTS Destination file - 09-08-2003 , 01:20 PM






Hi

This will depend on exacty what you are doing.

You could create a template file that is copied to the destination, data can
then be appended to the file.

You could use a SQL query data source that uses a Union to output the header
as the first row.

You could write it into an activeX script task......


John



"Stever" <spgblair (AT) blair (DOT) com> wrote

Quote:
Is it possible to add a header column to a DTS Destination
file? I am able to output the row by row transformations,
but what a bout adding a one time header row to the out
put?

Tahnks for the help!
Stever



Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Adding a header row to DTS Destination file - 09-09-2003 , 01:56 PM



In article <3f5cc7ac$0$259$ed9e5944 (AT) reading (DOT) news.pipex.net>, John Bell
<jbellnewsposts (AT) hotmail (DOT) com> writes
Quote:
Hi

This will depend on exacty what you are doing.

You could create a template file that is copied to the destination, data can
then be appended to the file.

You could use a SQL query data source that uses a Union to output the header
as the first row.

You could write it into an activeX script task......


John

...
or write two files and merge them using DOS copy, e.g.

copy file1.txt+file2.txt outputfile.txt

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.