dbTalk Databases Forums  

Exec DTS step using other DTS step BUT NOT workflow

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


Discuss Exec DTS step using other DTS step BUT NOT workflow in the microsoft.public.sqlserver.dts forum.



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

Default Exec DTS step using other DTS step BUT NOT workflow - 10-06-2003 , 03:40 AM






Hi All,
I have to steps in DTS which I want to run in indeterminate loop.
DTSStep_DTSActiveScriptTask_1
DTSStep_DTSActiveScriptTask_2

In DTSStep_DTSActiveScriptTask_2, Though VB Script in Main() I am trying to
execute DTSStep_DTSActiveScriptTask_1
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("DTSStep_DTSActiveScriptTask_1")
oPkg.Steps("DTSStep_DTSActiveScriptTask_1").Execut ionStatus =
DTSStepExecStat_ExecuteTask

but its throwing error "Invalid step status"
How to execute DTSStep_DTSActiveScriptTask_1 on completion of
DTSStep_DTSActiveScriptTask_2. I don;t want to use workflow.



Regards

Abhijeet



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

Default Re: Exec DTS step using other DTS step BUT NOT workflow - 10-06-2003 , 06:27 AM






The Step execute method is really only their for the Designer. It is not
recommended that you use this at run-time. Use workflow.

Your error is caused because the ExecutionStatus property is read-only.

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


"Abhijeet Raje" <abhijeet2804 (AT) hotmail (DOT) com> wrote

Quote:
Hi All,
I have to steps in DTS which I want to run in indeterminate loop.
DTSStep_DTSActiveScriptTask_1
DTSStep_DTSActiveScriptTask_2

In DTSStep_DTSActiveScriptTask_2, Though VB Script in Main() I am trying
to
execute DTSStep_DTSActiveScriptTask_1
Set oPkg = DTSGlobalVariables.Parent
Set oStep = oPkg.Steps("DTSStep_DTSActiveScriptTask_1")
oPkg.Steps("DTSStep_DTSActiveScriptTask_1").Execut ionStatus =
DTSStepExecStat_ExecuteTask

but its throwing error "Invalid step status"
How to execute DTSStep_DTSActiveScriptTask_1 on completion of
DTSStep_DTSActiveScriptTask_2. I don;t want to use workflow.



Regards

Abhijeet





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.