dbTalk Databases Forums  

Output Parameters set by Stored procedure

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


Discuss Output Parameters set by Stored procedure in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rob.beckman@kroger.com
 
Posts: n/a

Default Output Parameters set by Stored procedure - 10-14-2004 , 12:07 PM






HI,
Trying to set a Global Variable using output from a stored procedure. I'm
using a row value. The stored procedure variable is declared as
varchar(200). The Global Variable is declared as type string. However, when
I display the global variable from an ActiveX script the global variable is
NOT set. Any ideas

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Output Parameters set by Stored procedure - 10-14-2004 , 01:37 PM






Have a read through this article.

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/Default.aspx?234)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"rob.beckman (AT) kroger (DOT) com" <robbeckmankrogercom (AT) discussions (DOT) microsoft.com>
wrote in message news:7E88BD68-A657-4938-B613-8F50614AC5CC (AT) microsoft (DOT) com...
Quote:
HI,
Trying to set a Global Variable using output from a stored procedure. I'm
using a row value. The stored procedure variable is declared as
varchar(200). The Global Variable is declared as type string. However,
when
I display the global variable from an ActiveX script the global variable
is
NOT set. Any ideas



Reply With Quote
  #3  
Old   
rob.beckman@kroger.com
 
Posts: n/a

Default Re: Output Parameters set by Stored procedure - 10-14-2004 , 02:55 PM



I have it working. The problem is that I was using Raiserror and then
returning a message variable back to the DTS. The Raiserror keeps the output
paramater from being mapped to the global variable. So I tried to check the
return code from the stored procedure and if the return code = 1, I want to
issue an raiserror so the DTS takes a different branch. However, it never
executes the raiserror after mapping the global variable. Sounds like a BUG!

"Allan Mitchell" wrote:

Quote:
Have a read through this article.

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/Default.aspx?234)

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"rob.beckman (AT) kroger (DOT) com" <robbeckmankrogercom (AT) discussions (DOT) microsoft.com
wrote

HI,
Trying to set a Global Variable using output from a stored procedure. I'm
using a row value. The stored procedure variable is declared as
varchar(200). The Global Variable is declared as type string. However,
when
I display the global variable from an ActiveX script the global variable
is
NOT set. Any ideas




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.