![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am calling a DTS from a stored proc. when I FORCE a task to fail (testing) the following code does not return an error...it will always return 0 therefore never going inside the if statement. --Executing the Package: EXEC @hr = sp_OAMethod @oPKG, 'Execute' IF @hr <> 0 BEGIN SET @strReturnMsg = '*** DTS Package Execute failed' --EXEC sp_displayoaerrorinfo @oPKG , @hr RETURN -1 END I know the 'ActiveX' task fails because the DTS does not go on to the next task a 'Bulk Insert'. thanks nevlis |
#3
| |||
| |||
|
|
Forgot to mention SQLSERVER 2000 sp.3 nevlis <silven (AT) removesilven (DOT) canada.com> wrote in news:Xns95E17EBDB8F4Csilvencanadacom (AT) 206 (DOT) 167.113.5: I am calling a DTS from a stored proc. when I FORCE a task to fail (testing) the following code does not return an error...it will always return 0 therefore never going inside the if statement. --Executing the Package: EXEC @hr = sp_OAMethod @oPKG, 'Execute' IF @hr <> 0 BEGIN SET @strReturnMsg = '*** DTS Package Execute failed' --EXEC sp_displayoaerrorinfo @oPKG , @hr RETURN -1 END I know the 'ActiveX' task fails because the DTS does not go on to the next task a 'Bulk Insert'. thanks nevlis |
#4
| |||
| |||
|
|
spDisplayPKGErrors |
![]() |
| Thread Tools | |
| Display Modes | |
| |