Re: Using output variables
From: Jonathan Chong (jonathan_at_3exp.com)
Date: 09/23/04
- Next message: Ken: "Having trouble using Order by when calling distinct"
- Previous message: Andrey: "Re: Explain TSQL running"
- In reply to: GeorgeP: "Re: Using output variables"
- Next in thread: GP: "Re: Using output variables"
- Reply: GP: "Re: Using output variables"
- Reply: GP: "Re: Using output variables"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 11:37:10 +0800
That's my point. The problem lies in the Web page that calling
'GetPermissions'.
Try this in your Query Analyzer to proof that your SP has not problem:
DECLARE @PID int, @UserID int
DECLARE @permission int
SET @PID =1
SET @UserID =1
EXEC GetPermissions @PID,@UserID,@permission OUTPUT
SELECT @permission
"GeorgeP" <anonymous@discussions.microsoft.com> wrote in message
news:072c01c4a118$f1b38e60$a301280a@phx.gbl...
> I have the Page calling the stored proc and the proc
> should be returning the paramter. If returned permission
> code is correct the page goes to the admin page.
>
> The problem is that the SP does not work. The question
> is... Why is the procedure looking for the output variable
> to be entered as an input variable? the output variable
> is loaded in the select statement of the proc.
>
> Thanks,
> GP
- Next message: Ken: "Having trouble using Order by when calling distinct"
- Previous message: Andrey: "Re: Explain TSQL running"
- In reply to: GeorgeP: "Re: Using output variables"
- Next in thread: GP: "Re: Using output variables"
- Reply: GP: "Re: Using output variables"
- Reply: GP: "Re: Using output variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|