I can get the return value of a SQL stored procedure back like so (in T-SQL)
declare @rc int
exec @rc = dupint 10
print @rc -- 20
define proc dupint @i int
as
return @i + @i
How can I do this using SQL pass through:
?sqlexec(1, "exec ?i = dupint 20")
Also, how do I get the return value from SQL user defined function:
?sqlexec(1, "exec ?i = dbo.dupint(20)")
Any help is appreciated.
Jacobus Terhorst