dbTalk Databases Forums  

Setting SourceConnectionID Property

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


Discuss Setting SourceConnectionID Property in the microsoft.public.sqlserver.dts forum.



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

Default Setting SourceConnectionID Property - 05-12-2006 , 08:03 AM






Hi:

I am trying to set the SourceConnectionID in an ActiveX Script Task at
runtime:

set pkg = DTSGlobalVariables.Parent
pkg.Tasks("DTSTask_DTSDataPumpTask_1").SourceConne ctionID = 34

...and when I run the package I get an error saying:

"object doesn't support this property or method"

Shouldn't I be able to set this property?

Thanks,
Kayda


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

Default RE: Setting SourceConnectionID Property - 05-12-2006 , 10:47 AM






The task has the basic properties only, the meat of it is the custom task,

Try something like this -

pkg.Tasks("DTSTask_DTSDataPumpTask_1").CustomTask. SourceConnectionID = 34

--
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com


"Kayda" wrote:

Quote:
Hi:

I am trying to set the SourceConnectionID in an ActiveX Script Task at
runtime:

set pkg = DTSGlobalVariables.Parent
pkg.Tasks("DTSTask_DTSDataPumpTask_1").SourceConne ctionID = 34

...and when I run the package I get an error saying:

"object doesn't support this property or method"

Shouldn't I be able to set this property?

Thanks,
Kayda



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.