dbTalk Databases Forums  

help in inserting data

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


Discuss help in inserting data in the microsoft.public.sqlserver.dts forum.



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

Default help in inserting data - 03-09-2009 , 01:13 AM






hi, i am new to sql server, .............

i have 2 databases,i have to insert data from the old database to new
database........
for example i have first_name column in new database but i have first_name,
first_name1,first_name2 ... 3 columns in old database...... i have to insert
3 columns into the 1 column in new database.......

i have done like this .......
1. In the dataflow task i have taken oledb source in which i have selected 3
columns and sorted it...
2.on the side taken another oledb1 source which have 1 column first_name and
sorted.....

what should i do to insert 3 colums in to the one column.........
please help me urgently...........


Reply With Quote
  #2  
Old   
tbradshaw via SQLMonster.com
 
Posts: n/a

Default Re: help in inserting data - 03-09-2009 , 02:38 PM






Lots of missing information here:

Using SQL 2000, 2005, 2008?
Using DTS, or SSIS? (This is a DTS forum)

If DTS, I'd use a source query to concatenate columns together.
If SSIS, I'd create a derived column to concatenate columns together.

The tutorials on MSDN should help you out here.

Best Regards,
Tom

--
Message posted via http://www.sqlmonster.com


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 - 2013, Jelsoft Enterprises Ltd.