Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Copy columns from source to destination

Author  Topic 

mhijnen
Starting Member

3 Posts

Posted - 2007-04-10 : 06:53:46
Hi all,

I want to copy 2 columns from 1 database to another database.
I managed to do this, using a Ole DB source and a Ole DB destination dataset.

Now I want to merge 2 colums into 1:
Source Database: Column A: first name, Column B: Lastname.
Destination Database: Column 1: First and lastname customer.

Thanks for your help!


Kind regards,

Marcel Hijnen
eXDe Solutions B.V.

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2007-04-10 : 08:29:44
Use a derived column transformation with an expression along the lines of:
[Column A] + " " + [Column B]
If either column is nullable, you'll need to test for null values (using the ISNULL function with the conditional operator - ?)

Mark
Go to Top of Page

mhijnen
Starting Member

3 Posts

Posted - 2007-04-12 : 04:36:17
Thanks! Mark

Could you please define how to manage this in SSIS?



Kind regards,

Marcel Hijnen
eXDe Solutions B.V.
Go to Top of Page

mhijnen
Starting Member

3 Posts

Posted - 2007-04-12 : 08:58:58
Sorry, It works

Kind regards,

Marcel Hijnen
eXDe Solutions B.V.
Go to Top of Page

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2007-04-12 : 10:11:36
no problem.

Mark
Go to Top of Page
   

- Advertisement -