dbTalk Databases Forums  

nesting DTS packages and returning errors

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


Discuss nesting DTS packages and returning errors in the microsoft.public.sqlserver.dts forum.



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

Default nesting DTS packages and returning errors - 02-19-2004 , 04:40 PM






I've noticed that when I have a sql server agent job that calls a DTS
package, and that package in turn calls another DTS package, when the
inner package fails, it does not return an error to the outer package
and hence the sql server agent job indicates success even though the
inner dts package failed.

Is there a way to get the sql server agent job to indicate a failure
when the inner dts package fails?

Thanks in advance.

Walter
waltmallon (AT) yahoo (DOT) com

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

Default Re: nesting DTS packages and returning errors - 02-19-2004 , 05:09 PM






In message <28db1398.0402191440.6aec774f (AT) posting (DOT) google.com>, Walter
Mallon <waltmallon (AT) yahoo (DOT) com> writes
Quote:
I've noticed that when I have a sql server agent job that calls a DTS
package, and that package in turn calls another DTS package, when the
inner package fails, it does not return an error to the outer package
and hence the sql server agent job indicates success even though the
inner dts package failed.

Is there a way to get the sql server agent job to indicate a failure
when the inner dts package fails?

Thanks in advance.

Walter
waltmallon (AT) yahoo (DOT) com
If using the Exec Pkg Task, you need to set the package option "Fail on
first error" to true, for the child package. Unfortunately this has the
side-effect that you cannot use On Error workflow in the child package.
If this is a problem then try using ActiveX Script instead.

--
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.