Hello,
I need to be able to read the code my stored procedure returns.Here is an example of the stored procedure that can return 1, 2, 3, etc depending on input parameter. How can I get the value this stpred procedure returns in ASP?
I tried to use Parameters, but couldn't make it work
Here is sp:
CREATE PROCEDURE Test @Value int
AS
IF @Value = 1
BEGIN
RETURN 1
END
IF @Value = 2
BEGIN
RETURN 2
END
IF @Value = 3
BEGIN
RETURN 3
END
IF @Value NOT BETWEEN 1 AND 3
BEGIN
SELECT 'TEST'
END
GO
I'll appreciate if somebody can help me with it.
Thank you
I need to be able to read the code my stored procedure returns.Here is an example of the stored procedure that can return 1, 2, 3, etc depending on input parameter. How can I get the value this stpred procedure returns in ASP?
I tried to use Parameters, but couldn't make it work
Here is sp:
CREATE PROCEDURE Test @Value int
AS
IF @Value = 1
BEGIN
RETURN 1
END
IF @Value = 2
BEGIN
RETURN 2
END
IF @Value = 3
BEGIN
RETURN 3
END
IF @Value NOT BETWEEN 1 AND 3
BEGIN
SELECT 'TEST'
END
GO
I'll appreciate if somebody can help me with it.
Thank you