dbTalk Databases Forums  

Map multiple columns in one Transformation??

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


Discuss Map multiple columns in one Transformation?? in the microsoft.public.sqlserver.dts forum.



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

Default Map multiple columns in one Transformation?? - 10-24-2004 , 11:31 AM






I just saw some sample code:

Function Main()
DTSDestination("AccountID") = DTSSource("CUSTOMER__")
DTSDestination("AccountName") = DTSSource("CUSTOMER_N")
DTSDestination("GPO") = DTSSource("NATIONAL_C")
DTSDestination("Address1") = DTSSource("ADDRESS_1")
DTSDestination("Address2") = DTSSource("ADDRESS_2")
DTSDestination("City") = DTSSource("CITY")
DTSDestination("State") = DTSSource("STATE_OR_R")
DTSDestination("Zip") = DTSSource("ZIP_OR_POS")
Main = DTSTransformStat_OK
End Function

I have a Function Main() for each column. There are about 40 columns. Its
this a huge performance hit?

How do you think the sample code was created? I guess maybe I can map
multiple columns in one Transformation?

Thanks

Erik



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

Default Re: Map multiple columns in one Transformation?? - 10-24-2004 , 12:58 PM






You don't have a Function Main() for each column do you? How are you doing
that?
Do you mean you are using an ActiveX transform?

If yes and the below is your script then Yes it will be slower than simply
using 1 * multi column copy column transform.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Erik" <erikg (AT) pcslink (DOT) com> wrote

Quote:
I just saw some sample code:

Function Main()
DTSDestination("AccountID") = DTSSource("CUSTOMER__")
DTSDestination("AccountName") = DTSSource("CUSTOMER_N")
DTSDestination("GPO") = DTSSource("NATIONAL_C")
DTSDestination("Address1") = DTSSource("ADDRESS_1")
DTSDestination("Address2") = DTSSource("ADDRESS_2")
DTSDestination("City") = DTSSource("CITY")
DTSDestination("State") = DTSSource("STATE_OR_R")
DTSDestination("Zip") = DTSSource("ZIP_OR_POS")
Main = DTSTransformStat_OK
End Function

I have a Function Main() for each column. There are about 40 columns.
Its this a huge performance hit?

How do you think the sample code was created? I guess maybe I can map
multiple columns in one Transformation?

Thanks

Erik




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.