dbTalk Databases Forums  

Getting the name of the current ActiveX Script

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


Discuss Getting the name of the current ActiveX Script in the microsoft.public.sqlserver.dts forum.



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

Default Getting the name of the current ActiveX Script - 08-12-2005 , 04:44 AM






Hi,

I know how to get the name of my DTS using the following:

sMyDts = DTSGlobalVariables.Parent.Name

BUT how do I get the name of the ActiveX Script that I'm currently editing?

I need this so I can report accurately to an Error Log table.

Many Thanks

JD

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

Default Re: Getting the name of the current ActiveX Script - 08-12-2005 , 09:26 AM






You cannot, http://tinyurl.com/e34fe

Why not use the built in logging to a table?

For an enhancement to this, if you wish to log your own data along side
this, use the "Show lineage variables..." package option. to expose global
variables of the lineage IDs. You can use these to reference your log data
to the package generated log data.



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

"Jon Derbyshire" <JonDerbyshire (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I know how to get the name of my DTS using the following:

sMyDts = DTSGlobalVariables.Parent.Name

BUT how do I get the name of the ActiveX Script that I'm currently
editing?

I need this so I can report accurately to an Error Log table.

Many Thanks

JD



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.