dbTalk Databases Forums  

Referencing objects in DTS active X script

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


Discuss Referencing objects in DTS active X script in the microsoft.public.sqlserver.dts forum.



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

Default Referencing objects in DTS active X script - 07-04-2005 , 12:08 AM






In the ActiveX script I have to reference different tasks but the names are
very convoluted and not intuitive, for example DTSTask_DTSDataPumpTask_3.

How can I name these tasks appropriately ?



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Referencing objects in DTS active X script - 07-04-2005 , 12:37 AM






If you are going to start renaming the tasks and steps etc then do this
right at the start of your package as they have interdependencies with
constraints etc. I usually store a ref to the object like this though

dim pkg, tsk

SET pkg = DTSGlobalVariables.Parent
SET tsk = pkg.Tasks("DTSTask_DTSDataPumpTask_3").CustomTask


.....

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"GMG" <nospam (AT) nospam (DOT) com> wrote

Quote:
In the ActiveX script I have to reference different tasks but the names
are
very convoluted and not intuitive, for example DTSTask_DTSDataPumpTask_3.

How can I name these tasks appropriately ?





Reply With Quote
  #3  
Old   
GMG
 
Posts: n/a

Default Re: Referencing objects in DTS active X script - 07-04-2005 , 05:40 PM



How do you actually rename tasks through the interface (the only option you
are given is a description) ?
The only way I can see is to export it to VB script, rename the objects and
somehow reimport it as a DTS package, is this how to do it or is there a
better way ?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
If you are going to start renaming the tasks and steps etc then do this
right at the start of your package as they have interdependencies with
constraints etc. I usually store a ref to the object like this though

dim pkg, tsk

SET pkg = DTSGlobalVariables.Parent
SET tsk = pkg.Tasks("DTSTask_DTSDataPumpTask_3").CustomTask


....

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"GMG" <nospam (AT) nospam (DOT) com> wrote in message
news:ux36yaFgFHA.3436 (AT) tk2msftngp13 (DOT) phx.gbl...
In the ActiveX script I have to reference different tasks but the names
are
very convoluted and not intuitive, for example
DTSTask_DTSDataPumpTask_3.

How can I name these tasks appropriately ?







Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Referencing objects in DTS active X script - 07-05-2005 , 12:32 AM



You could do that or you can use Disconnected Edit.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"GMG" <nospam (AT) nospam (DOT) com> wrote

Quote:
How do you actually rename tasks through the interface (the only option
you
are given is a description) ?
The only way I can see is to export it to VB script, rename the objects
and
somehow reimport it as a DTS package, is this how to do it or is there a
better way ?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uqxvcpFgFHA.2424 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
If you are going to start renaming the tasks and steps etc then do this
right at the start of your package as they have interdependencies with
constraints etc. I usually store a ref to the object like this though

dim pkg, tsk

SET pkg = DTSGlobalVariables.Parent
SET tsk = pkg.Tasks("DTSTask_DTSDataPumpTask_3").CustomTask


....

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"GMG" <nospam (AT) nospam (DOT) com> wrote in message
news:ux36yaFgFHA.3436 (AT) tk2msftngp13 (DOT) phx.gbl...
In the ActiveX script I have to reference different tasks but the names
are
very convoluted and not intuitive, for example
DTSTask_DTSDataPumpTask_3.

How can I name these tasks appropriately ?









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.