dbTalk Databases Forums  

ActiveX for Transformation: only the first row is imported

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


Discuss ActiveX for Transformation: only the first row is imported in the microsoft.public.sqlserver.dts forum.



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

Default ActiveX for Transformation: only the first row is imported - 01-18-2006 , 12:24 PM






I have two connection objects (source and destination), one
transformation task (task1) that imports data from source to destination
tables. And I have an ActiveX Script task.

The AxtiveX script task will loop through each table in a pre-defined
list, and programmingly remove all existing transformations in task1,
and add the following ActiveX transformation to task1:

Function Main()
DTSDestination(1) = DTSSource(1)
DTSDestination(2) = DTSSource(2)
Main = DTSTransformStat_OK
End Function

Everything seems to work except that only the first row in each source
table is imported. I want all rows in source table to be imported.

Any idea?


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

Default Re: ActiveX for Transformation: only the first row is imported - 01-18-2006 , 02:57 PM






Hello q_test,

Your transforms will have nothing to do with how many rows you get. They
simply tell the pipeline what to do with the attributes. Very strange you
only import the first row. Providing you do not touch anything else about
the Data Pump task, have a look at it. Preview the Source data, look at
the last tab that tells the pump what row is first and what is last, when
the pipeline does run how many rows does it say it moved?.

Allan

Quote:
I have two connection objects (source and destination), one
transformation task (task1) that imports data from source to
destination tables. And I have an ActiveX Script task.

The AxtiveX script task will loop through each table in a pre-defined
list, and programmingly remove all existing transformations in task1,
and add the following ActiveX transformation to task1:

Function Main()
DTSDestination(1) = DTSSource(1)
DTSDestination(2) = DTSSource(2)
Main = DTSTransformStat_OK
End Function
Everything seems to work except that only the first row in each source
table is imported. I want all rows in source table to be imported.

Any idea?




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.