Re: Output Parameters set by Stored procedure

rob.beckman_at_kroger.com
Date: 10/14/04


Date: Thu, 14 Oct 2004 12:55:03 -0700

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:

> 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@kroger.com" <robbeckmankrogercom@discussions.microsoft.com>
> wrote in message news:7E88BD68-A657-4938-B613-8F50614AC5CC@microsoft.com...
> > 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
>
>
>



Relevant Pages

  • Re: DTS issue....please help!!
    ... Global Variables and Stored Procedure Parameters ... www.SQLDTS.com - The site for all your DTS needs. ... > Declare @QCStatus VarChar ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS Step Fail
    ... 'SP' represents the name of the stored procedure - 'CheckSpace_DriveUpdate' ... If I were to use a Datapump task or TSQL statment, ... > www.SQLDTS.com - The site for all your DTS needs. ... >> global variables - runs fine if executing step on it's own, ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS issue....please help!!
    ... www.SQLDTS.com - The site for all your DTS needs. ... >> Global Variables and Stored Procedure Parameters ... >> Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... >>>I have a stored procedure that does a qc check on 2 tables. ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS issue....please help!!
    ... Also the DTS package correctly assings a value to the ... > Global Variables and Stored Procedure Parameters ... >>I have a stored procedure that does a qc check on 2 tables. ...
    (microsoft.public.sqlserver.dts)
  • Re: Pass on variables from SPs into DTS
    ... T-SQL and read it out with DTS when configuring global variables. ... > Global Variables and Stored Procedure Parameters ...
    (microsoft.public.sqlserver.dts)