dbTalk Databases Forums  

Step Referance

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


Discuss Step Referance in the microsoft.public.sqlserver.dts forum.



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

Default Step Referance - 01-12-2004 , 05:10 PM






How can I referance a task by name instead of by its Task #?

This works:
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("DTSStep_DTSActiveScriptTask_3")

Need it to be like this:
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("MyTaskName")



--
___________________________
Joe Horton
Database Developer / Software Engineer
WISHA/Legal Services Software Development
Department of Labor and Industries
Voice (360) 902-5928 fax (360) 902-6200



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

Default Re: Step Referance - 01-12-2004 , 05:37 PM






In message <1006aanc2p1ar8c (AT) corp (DOT) supernews.com>, Joe
<nwservices (AT) olynet (DOT) com> writes
Quote:
How can I referance a task by name instead of by its Task #?

This works:
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("DTSStep_DTSActiveScriptTask_3")

Need it to be like this:
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("MyTaskName")


You are referencing the task by name.

DTSStep_DTSActiveScriptTask_3 is probably the step name, and MyTaskName
is the description. Unfortunately the task/step description is what you
see most of and is easily changed.

You can change your step name through Disconnected Edit, but be careful
if you have workflow. If changing task names you must also change the
TaskName property of the Step to match.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.