dbTalk Databases Forums  

Question about parameter passing

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


Discuss Question about parameter passing in the microsoft.public.sqlserver.dts forum.



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

Default Question about parameter passing - 02-15-2009 , 11:36 PM






Hi!
The workflow of my DTS is somewhat like this:
---------------------------
An ExecuteSQLTask ---> An ActiveScriptTask
---------------------------
The first task will run a procedure,which uses "Select @retval as ErrorCode"
to pass out a return value, and a global varaible "ErrorStatus" has been set
using the ExecuteSQLTask's right-click property to receive the
value.Then,the second task will check the global varaible.
My issuse is,there exist some situations in which the var "ErrorStatus" got
nothing,which should be impossible.
How could this happen?
Report post as abusive


Reply With Quote
  #2  
Old   
tbradshaw via SQLMonster.com
 
Posts: n/a

Default Re: Question about parameter passing - 02-18-2009 , 03:55 PM






Hello dashlh,

Is it possible that @retval is NULL, or never gets assigned? Or perhaps
you're assigning a string value to an INT global variable?

In my testing, an unknown value changes the Type to "Null" and Value to <not
displayable>

Perhaps you can give us more information about your ExecuteSQLTask.

Best Regards,
Tom

Thomas Bradshaw
Data Integration Services
MyWebGrocer LLC

dashllh wrote:
Quote:
Hi!
The workflow of my DTS is somewhat like this:
---------------------------
An ExecuteSQLTask ---> An ActiveScriptTask
---------------------------
The first task will run a procedure,which uses "Select @retval as ErrorCode"
to pass out a return value, and a global varaible "ErrorStatus" has been set
using the ExecuteSQLTask's right-click property to receive the
value.Then,the second task will check the global varaible.
My issuse is,there exist some situations in which the var "ErrorStatus" got
nothing,which should be impossible.
How could this happen?
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200902/1



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.