dbTalk Databases Forums  

Referencing Transformations collection of a class

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


Discuss Referencing Transformations collection of a class in the microsoft.public.sqlserver.dts forum.



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

Default Referencing Transformations collection of a class - 10-14-2003 , 05:19 AM






Hi there,
Through the Disconnected Edit screen it looks like each
datapump task has a transformations collection but I can't
get a reference to it in code.

I've got as far as

set objMyTask = DTSGlobalVariables.Parent.Tasks("MyTask")

But as soon as I go
objMyTask.transformations("Trans1")
etc... it throws an error.

Can anyone help. I'm sure this can't be too difficult.

TIA

Regards
Jamie Thomson


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Referencing Transformations collection of a class - 10-14-2003 , 05:32 AM






The guts of a task is on the custom task. The Task class acts as a wrapper
for the type specific class, e.g. DataPumpTask Object.


Set oDataPump = oPkg.Tasks("MyDataPumpTask").CustomTask

--
Darren Green
http://www.sqldts.com

"Jamie Thomson" <jamie.thomson (AT) int21 (DOT) com> wrote

Quote:
Hi there,
Through the Disconnected Edit screen it looks like each
datapump task has a transformations collection but I can't
get a reference to it in code.

I've got as far as

set objMyTask = DTSGlobalVariables.Parent.Tasks("MyTask")

But as soon as I go
objMyTask.transformations("Trans1")
etc... it throws an error.

Can anyone help. I'm sure this can't be too difficult.

TIA

Regards
Jamie Thomson




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.