dbTalk Databases Forums  

Re: Creating a Header in DTS using the Pre Souce data phase

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


Discuss Re: Creating a Header in DTS using the Pre Souce data phase in the microsoft.public.sqlserver.dts forum.



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

Default Re: Creating a Header in DTS using the Pre Souce data phase - 07-21-2004 , 01:16 PM






By Header I presume you mean in a text file?

Forget using the phases. It is often alluded to but damned if I can get it
to work.

What I do is

Export a "Header" Text File
Export the "Data" Text File
Use COPY Header.txt + Data.txt AllTogether.txt




--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"DavidZ" <DavidZ (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am looking for an example of how to add a header actually just the date
as a header using the Pre Source Data phase of DTS. I have found articles
refering to the ability to do this, but no examples.




Reply With Quote
  #2  
Old   
Wes
 
Posts: n/a

Default Re: Creating a Header in DTS using the Pre Souce data phase - 07-22-2004 , 08:41 AM







David,

That is how I do it as well. Although I've noticed that the using COPY
for file concatanition seens to insert a 1A character at the end of the
file. It has never caused a problem for me though.

The SAMS book "Microsoft SQL Server 2000 DTS on page 235 specifically
recommends using the Pre Source phase to write a header, but gives no
advice on actually implementing it. Which is probably based on a quote
in the books online, which also recommends using the pre-source phase
for headers without any implementation details.

Good luck,
Wes

Allan Mitchell wrote:
Quote:
By Header I presume you mean in a text file?

Forget using the phases. It is often alluded to but damned if I can
get it
to work.


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.