dbTalk Databases Forums  

data pump activex

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


Discuss data pump activex in the microsoft.public.sqlserver.dts forum.



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

Default data pump activex - 12-06-2005 , 04:09 PM






In the activex of data pump task, I need to apply a same function to
every source column to get destination column. Is it possible to write
a for loop to apply the same function to every source column so that I
don;t have a repeat the following code for every column.

DTSDestination("col1") = Applyfunction (DTSSource("col1"))

thanks
PM


Reply With Quote
  #2  
Old   
Tom Moreau
 
Posts: n/a

Default Re: data pump activex - 12-06-2005 , 04:13 PM






Try (untested):

For Col = 1 To DTSDestination.Count
DTSDestination(Col) = Applyfunction (DTSSource(Col))
Next

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada tom (AT) cips (DOT) ca
www.pinpub.com

"pm" <mittal.pradeep (AT) gmail (DOT) com> wrote

Quote:
In the activex of data pump task, I need to apply a same function to
every source column to get destination column. Is it possible to write
a for loop to apply the same function to every source column so that I
don;t have a repeat the following code for every column.

DTSDestination("col1") = Applyfunction (DTSSource("col1"))

thanks
PM




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

Default Re: data pump activex - 12-07-2005 , 09:45 PM



Yes it works.

thanks

Tom Moreau wrote:
Quote:
Try (untested):

For Col = 1 To DTSDestination.Count
DTSDestination(Col) = Applyfunction (DTSSource(Col))
Next

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada tom (AT) cips (DOT) ca
www.pinpub.com

"pm" <mittal.pradeep (AT) gmail (DOT) com> wrote in message
news:1133906943.169156.149170 (AT) f14g2000cwb (DOT) googlegroups.com...
In the activex of data pump task, I need to apply a same function to
every source column to get destination column. Is it possible to write
a for loop to apply the same function to every source column so that I
don;t have a repeat the following code for every column.

DTSDestination("col1") = Applyfunction (DTSSource("col1"))

thanks
PM



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.