dbTalk Databases Forums  

Code DTS Event handlers in an ActiveX Script in the DTS Package

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


Discuss Code DTS Event handlers in an ActiveX Script in the DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default Code DTS Event handlers in an ActiveX Script in the DTS Package - 03-15-2006 , 04:37 AM






Code DTS Event handlers in an ActiveX Script in the DTS Package

When executing a DTS Package in VB6 using the DTS Object etc ... You
can install
the DTS Event handlers and add code to them

see article
http://support.microsoft.com/default...;EN-US;Q221193

Can the same be done in a ActiveX Script?
So your code fires when a specific DTS event fires

This ActiveX Script has to be in the DTS package
and the events in it must only fire when the mapped DTS events fire.


Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Code DTS Event handlers in an ActiveX Script in the DTS Package - 03-16-2006 , 07:26 AM






RAG,

That would be too cool. To be able to do this the script engine itself has
to aware of events. To specify the event script the engine has to know the
script location and subroutine name, which can be defaulted to say 'Main'. I
do not believe any of that is available in DTS. You can try to simulate all
this by something like writing a custom task in VB which would take task
names (not only script tasks) as parameters and execute them on events. The
only limitation of this is custom task has to be executed on main package
thread and by that it is single threaded.

Ilya

"RAG" <ragubir.dhiman (AT) pslconnect (DOT) com> wrote

Quote:
Code DTS Event handlers in an ActiveX Script in the DTS Package

When executing a DTS Package in VB6 using the DTS Object etc ... You
can install
the DTS Event handlers and add code to them

see article
http://support.microsoft.com/default...;EN-US;Q221193

Can the same be done in a ActiveX Script?
So your code fires when a specific DTS event fires

This ActiveX Script has to be in the DTS package
and the events in it must only fire when the mapped DTS events fire.




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.