There are two ways to return parameter data from a stored proc. One is via the output parameter and the other is via return value. You can return only integer/integer expressions via the return value. You can return pretty much anything via parameters. So you should change your stored proc to remove the "RETURN @outValue" statement and then call it like this:DECLARE @ide int,@OutValue varchar(5);set @OutValue = '';set @id = 3659;Exec dbo.CustomerFromLineNumber @id, @OutValue OUTPUT;select @OutValue;