dbTalk Databases Forums  

How can an ActiveX script reference the package that contains it?

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


Discuss How can an ActiveX script reference the package that contains it? in the microsoft.public.sqlserver.dts forum.



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

Default How can an ActiveX script reference the package that contains it? - 08-22-2003 , 12:34 PM






I am trying to write an ActriveX Script task inside an
existing DTS package.

In the code, I can see how to reference the package by its
name using the LoadFromSQLServer method, but I don't like
hard-coding the name of the parent package.

Is there a way to reference the package more generically,
or is there a way to interrogate DTS or SQL Server or to
find out the name by a method?

TIA,
Ross Evans


Reply With Quote
  #2  
Old   
Euan Garden[MS]
 
Posts: n/a

Default Re: How can an ActiveX script reference the package that contains it? - 08-22-2003 , 04:45 PM






DTSGlobalVariables.Parent will give you the package.

--
-Euan

Please reply only to the newsgroup so that others can benefit. When posting,
please state the version of SQL Server being used and the error number/exact
error message text received, if any.

This posting is provided "AS IS" with no warranties, and confers no rights.

"Ross Evans" <ross.evans (AT) STOPTHEMADNESStwc (DOT) state.tx.us> wrote

Quote:
I am trying to write an ActriveX Script task inside an
existing DTS package.

In the code, I can see how to reference the package by its
name using the LoadFromSQLServer method, but I don't like
hard-coding the name of the parent package.

Is there a way to reference the package more generically,
or is there a way to interrogate DTS or SQL Server or to
find out the name by a method?

TIA,
Ross Evans




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.