![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I currently have a stored proc that calls many functions. One of them is running a DTS job that will transform data from a sql DB to an output file. I use the following line of code in the stored proc. EXEC @Result = master..xp_cmdshell "DTSRun /SSQLCLUST /Usa /Psa /NDTS_Orde rDetailAttach", NO_OUTPUT When this runs I can see that the DTS job completes successfully. However, @Result never gets set to successful. I know in a SQL job you have the option to say on success or on failure do <action>. So there must be a way to evaluate wether the DTS was successful or not. Any Ideas on how I can determine the Return status of the DTS job? Thank you. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks that is the work around I had already put in place. Just thought there might be a better way either using some kind of dta global output variable or extended stored proc command. |
![]() |
| Thread Tools | |
| Display Modes | |
| |