dbTalk Databases Forums  

Transforming Into Multiple Rows

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


Discuss Transforming Into Multiple Rows in the microsoft.public.sqlserver.dts forum.



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

Default Transforming Into Multiple Rows - 10-26-2005 , 05:04 PM






Hi,

I'm building a DTS package and one of the tasks it needs to do is to
transform an existing order table in this format:
UserID OrderID
1 0010, 003c, 0145
2 045, x15
3 x9010

to a table of this format:
UserID OrderID
1 0010
1 003c
1 0145
2 045
2 x15
3 x9010

How can I use DTS to transform a single role from the source into multiple
rows in destination? Should I use ActiveX Scripting?


Thanks,
ywb

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

Default Re: Transforming Into Multiple Rows - 10-26-2005 , 05:26 PM






Hello WB,

You can use this

Processing The Same Row More Than Once
(http://www.sqldts.com/default.aspx?266)


Allan


Quote:
Hi,

I'm building a DTS package and one of the tasks it needs to do is to
transform an existing order table in this format:
UserID OrderID
1 0010, 003c, 0145
2 045, x15
3 x9010
to a table of this format:
UserID OrderID
1 0010
1 003c
1 0145
2 045
2 x15
3 x9010
How can I use DTS to transform a single role from the source into
multiple rows in destination? Should I use ActiveX Scripting?

Thanks,
ywb



Reply With Quote
  #3  
Old   
WB
 
Posts: n/a

Default Re: Transforming Into Multiple Rows - 10-27-2005 , 01:21 AM




Yes! That worked!

Thanks Allan.


"Allan Mitchell" wrote:

Quote:
Hello WB,

You can use this

Processing The Same Row More Than Once
(http://www.sqldts.com/default.aspx?266)


Allan


Hi,

I'm building a DTS package and one of the tasks it needs to do is to
transform an existing order table in this format:
UserID OrderID
1 0010, 003c, 0145
2 045, x15
3 x9010
to a table of this format:
UserID OrderID
1 0010
1 003c
1 0145
2 045
2 x15
3 x9010
How can I use DTS to transform a single role from the source into
multiple rows in destination? Should I use ActiveX Scripting?

Thanks,
ywb




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.