469,110 Members | 1,908 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,110 developers. It's quick & easy.

problem with OUTPUT params in Stored procedure

Jon
Hi all!
Running the code below in SQL-analyzeer (or through dbExpress) results in NULL.
As one might guess I would like the result to be 1. What is wrong? I.e, why
wont the result of the SP come back to the caller?


CREATE PROCEDURE test
@val INTEGER OUT
AS
SELECT @val = 1
GO

DECLARE @val INTEGER
EXEC test @val
SELECT @val
Jul 23 '05 #1
1 1008
EXEC test @val OUTPUT

Simon

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.