dbTalk Databases Forums  

SQL Task Error in proc not detected?

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


Discuss SQL Task Error in proc not detected? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eric_mamet_test@yahoo.co.uk
 
Posts: n/a

Default SQL Task Error in proc not detected? - 02-07-2005 , 11:45 AM






I have a package calling a stored proc PROC1, itself calling another
proc PROC2, calling a third proc PROC3.

Each procedure returns -1 on success and 0 on error
Each Procedure raises a raiserror('adhoc message',16,1) on error

Something goes wrong in PROC3 which is detected by PROC2 (through
@@ERROR)
PROC2 raises and error and return 0
PROC1 detects the problem (because of returned 0) and raises an error
itself.

The SQL Task does not seem to notice the error and carries on as if
everything was fine...

Question: what could make this SQL Task ignore the error?

Usually, my errors are triggered by a procedure at level 2, not 3, and
DTS detects the error properly.


Thanks for your help!


Eric


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.