dbTalk Databases Forums  

Failing a step/package

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


Discuss Failing a step/package in the microsoft.public.sqlserver.dts forum.



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

Default Failing a step/package - 03-05-2004 , 04:31 PM






I have an ActiveX step that validates a global variable, when the validation
is false, I do a

main = DTSTaskExecResult_Failure

the task exists nicely, but does not report failure so the package moves on.
How do I fail this properly so the package halts execution ?



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

Default Re: Failing a step/package - 03-06-2004 , 06:11 PM






What about setting the package level property "Fail on First Error" to true
in the package properties?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Jeff Block" <jblock (AT) REMOVETHECAPSANDINVALIDfirstlook (DOT) biz.invalid> wrote in
message news:e9iQTHwAEHA.356 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
I have an ActiveX step that validates a global variable, when the
validation
is false, I do a

main = DTSTaskExecResult_Failure

the task exists nicely, but does not report failure so the package moves
on.
How do I fail this properly so the package halts execution ?





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.