dbTalk Databases Forums  

merge the export column

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


Discuss merge the export column in the microsoft.public.sqlserver.dts forum.



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

Default merge the export column - 03-03-2005 , 09:49 AM






Hi,

I have a question, how can I export the table into a csv file and couple
column need merge into a column while export to the csv file.
Source colume: partno,material, color, grid, screen
CSV file: partno, types

Thanks,

Dannie

Reply With Quote
  #2  
Old   
Simon Worth
 
Posts: n/a

Default Re: merge the export column - 03-03-2005 , 12:39 PM






In DTS use an activeX transformation and create it so that the destination
is a concatination of multiple source columns.

IE
DTSDestination("Partno") = DTSource("Partno").Value
DTSDestination("types") = DTSource("Material").Value &
DTSource("color").Value & DTSource("grid").Value & DTSource("screen").Value

You'll have to add the formatting (such as "-" in between column values if
they are required) but this is the general idea.

"Dannie Chan" <DannieChan (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a question, how can I export the table into a csv file and couple
column need merge into a column while export to the csv file.
Source colume: partno,material, color, grid, screen
CSV file: partno, types

Thanks,

Dannie



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.