dbTalk Databases Forums  

Adding a column to a text file

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


Discuss Adding a column to a text file in the microsoft.public.sqlserver.dts forum.



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

Default Adding a column to a text file - 09-12-2003 , 11:25 AM






Hi

I am trying to use DTS to add a column to a text file.

I created a DTS package with 1 text file as source and another text file as
destination. I linked both text files with a Transform Data task, but I
could not find how to add a column to the destination on the transformation.
Is it possible to do this without using an intermediary table to load the
source text file and then create the other text file?

Thanks,

Fernando



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Adding a column to a text file - 09-12-2003 , 11:33 AM






so you want the destination text file to have 1 more column than the source
?

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Fernando Taniguti" <ftaniguti (AT) ccsc (DOT) com> wrote

Quote:
Hi

I am trying to use DTS to add a column to a text file.

I created a DTS package with 1 text file as source and another text file
as
destination. I linked both text files with a Transform Data task, but I
could not find how to add a column to the destination on the
transformation.
Is it possible to do this without using an intermediary table to load the
source text file and then create the other text file?

Thanks,

Fernando





Reply With Quote
  #3  
Old   
Fernando Taniguti
 
Posts: n/a

Default Re: Adding a column to a text file - 09-12-2003 , 12:00 PM



Yes, I want do add a column, but not to append the column to the end, I need
to insert the column in any position.


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
so you want the destination text file to have 1 more column than the
source
?

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Fernando Taniguti" <ftaniguti (AT) ccsc (DOT) com> wrote in message
news:OVjnZpUeDHA.956 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi

I am trying to use DTS to add a column to a text file.

I created a DTS package with 1 text file as source and another text file
as
destination. I linked both text files with a Transform Data task, but I
could not find how to add a column to the destination on the
transformation.
Is it possible to do this without using an intermediary table to load
the
source text file and then create the other text file?

Thanks,

Fernando







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Adding a column to a text file - 09-12-2003 , 03:19 PM



Personally I have never seen the need to enter columns at specific
places as a SELECT statement negates it but that said

You can.

1. Add to the column names value of the text file connection | Need to
add to the column lengths value as well

This does not seem to wreck your mappings either.


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


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.