dbTalk Databases Forums  

Execute Process Task catch return code

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


Discuss Execute Process Task catch return code in the microsoft.public.sqlserver.dts forum.



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

Default Execute Process Task catch return code - 02-14-2005 , 12:50 PM






Hello:

I have a DTS package and it will call a .exe file in Execute Process
Task. I need to catch the return code from the .exe after it executs.
However, the Return Code in Execute Process Task is what the DTS step
will return if it's successful. So how can I catch any retrun code from
..exe?

Thanks for any help!


Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: Execute Process Task catch return code - 02-16-2005 , 10:38 AM






xyc,

Find examples of ERRORLEVEL command usage. Execute your .exe in a batch
file and write ERRORLEVEL into a text file or to an environmental variable.

Ilya

"xyc" <xiyingchun (AT) hotmail (DOT) com> wrote

Quote:
Hello:

I have a DTS package and it will call a .exe file in Execute Process
Task. I need to catch the return code from the .exe after it executs.
However, the Return Code in Execute Process Task is what the DTS step
will return if it's successful. So how can I catch any retrun code from
.exe?

Thanks for any help!




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.