dbTalk Databases Forums  

Execute Process Task - Visual Basic - Return Code?

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


Discuss Execute Process Task - Visual Basic - Return Code? in the microsoft.public.sqlserver.dts forum.



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

Default Execute Process Task - Visual Basic - Return Code? - 07-15-2003 , 04:08 PM






I am writing a VB app. It will be run from within an 'Execute Process Task'

What's the best way to affect the task from within VB so that it will be
either a success or fail?

Thanks!



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

Default Re: Execute Process Task - Visual Basic - Return Code? - 07-16-2003 , 03:15 AM






By default VB doesn't do return codes. To do this properly you will need to
use the Win32 ExitProcess API.
Perhaps it would be better to write a COM DLL in VB instead (ActiveX DLL
project). This can be called from an ActiveX Script Task, and you can pass
information in and out much easier.


--
Darren Green
http://www.sqldts.com


"Bob Inskeep" <bi1 (AT) NOSPAMcinergy (DOT) com> wrote

Quote:
I am writing a VB app. It will be run from within an 'Execute Process
Task'

What's the best way to affect the task from within VB so that it will be
either a success or fail?

Thanks!





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.