all groups > sql server dts > january 2006 >
You're in the

sql server dts

group:

Merge information from 2 columns into 1 column


Merge information from 2 columns into 1 column smrshl
1/6/2006 1:41:03 PM
sql server dts:
I have a database that has a column for the first name and a column for a
last name. I need to use a dts report to merge these two fields into an
additional column in the database. I need to keep all three columns.

Re: Merge information from 2 columns into 1 column Allan Mitchell
1/7/2006 3:39:17 AM
Hello smrshl,

Use an Active Script transform and have two columns from the source columns
and one from the destination columns. Your Active Script transform will
look simlar to

DTSDestination("Dest Col Name") = DTSSource("SourceColumn 1") + DTSSource("SourceColumn
2")


Make sense?


You could also try doing this in a SourceSQLStatement when defining the datapump
and this would be more efficient. so instead of specifying a table from the
source you do something like

SELECT ................ Col1 + Col2 FROM TABLE

Help?

Allan



[quoted text, click to view]

AddThis Social Bookmark Button