what is wrong with this sp:
create procedure tstSP @ret char(10)=null OUTPUT
AS
.
.
.
SET @ret='returnval'
RETURN @ret
when I execute this, I get the following message:
Syntax error converting the varchar value 'returnval' to a column of data type int.
On debug the value of @ret is set correctly.
I don't think this is that complicated ... but I am kind of stumped!
create procedure tstSP @ret char(10)=null OUTPUT
AS
.
.
.
SET @ret='returnval'
RETURN @ret
when I execute this, I get the following message:
Syntax error converting the varchar value 'returnval' to a column of data type int.
On debug the value of @ret is set correctly.
I don't think this is that complicated ... but I am kind of stumped!