dbTalk Databases Forums  

how to stop the whole package

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


Discuss how to stop the whole package in the microsoft.public.sqlserver.dts forum.



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

Default how to stop the whole package - 12-07-2004 , 04:17 PM






hi,
If i have five tasks in a package, how am I able to stop the whole process
once error occurs. Do i go to Properties --> Logging --> check on "Fail
Package on first Error"?????
um... what if i have 5 ActiveXTask in a package, do I use Main =
DTSTaskExecResult_Failure to stop the whole process or i need to use "Stop"
to stop the whole process?
Thanks
Ed

Reply With Quote
  #2  
Old   
Ed
 
Posts: n/a

Default RE: how to stop the whole package - 12-07-2004 , 04:35 PM






I look at the sqldts.com to check for errors in the Child Package

For Each oStep In oPkg.Steps
If oStep.ExecutionResult = DTSStepExecResult_Failure Then
Main = DTSTaskExecResult_Failure
End If
Next

What is the code I need to add right after
"If oStep.ExecutionResult = DTSStepExecResult_Failure Then"
in order to stop the whole package?
Thanks
Ed


"Ed" wrote:

Quote:
hi,
If i have five tasks in a package, how am I able to stop the whole process
once error occurs. Do i go to Properties --> Logging --> check on "Fail
Package on first Error"?????
um... what if i have 5 ActiveXTask in a package, do I use Main =
DTSTaskExecResult_Failure to stop the whole process or i need to use "Stop"
to stop the whole process?
Thanks
Ed

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.