dbTalk Databases Forums  

DTS adding new destination columns

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


Discuss DTS adding new destination columns in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paulhux174@hotmail.com
 
Posts: n/a

Default DTS adding new destination columns - 04-10-2006 , 01:08 AM






DTS
Adding new destination columns.

Can you using the DTS designer add new columns to the Destination?
I want to combine fields from the Source into some new Destination
columns.


Thanks


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

Default Re: DTS adding new destination columns - 04-10-2006 , 05:59 AM






Hello paulhux174 (AT) hotmail (DOT) com,


Do you actually want to ADD/CREATE new columns or do they already exist in
the destination and they do not have a 1:1 matching column in the source?

For the latter then you can do this in a few ways.

1. In your SourceSQLStatement you can do something like this

SELECT
FirstName,
LastName,
FirstName + ' ' + LastName as FullName
....
FROM
...

2. You can also do this in an Active Script transformation


DTSDestination("FullName") = DTSSource("FirstName") + " " + DTSSource("LastName")



Hope this makes sense.


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
DTS
Adding new destination columns.
Can you using the DTS designer add new columns to the Destination? I
want to combine fields from the Source into some new Destination
columns.

Thanks




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.