G
Guest
Hi everyone,
Can someone show me how to obtain values returned from a called stored proc
inside a calling stored proc. For example:
StoredProc1
========
CREATE PROCEDURE StoredProc1(@keyID Int) AS
SELECT value1, value2, value3
FROM Table1
WHERE id = @keyID
GO
StoredProc2
========
CREATE PROCEDURE StoredProc2() AS
....
EXEC StoredProc1 @keyID = 1
I need to obtain value1, value2 and value3 from the StoredProc1.
Any suggestion is greatly appreciated.
Calvin
Can someone show me how to obtain values returned from a called stored proc
inside a calling stored proc. For example:
StoredProc1
========
CREATE PROCEDURE StoredProc1(@keyID Int) AS
SELECT value1, value2, value3
FROM Table1
WHERE id = @keyID
GO
StoredProc2
========
CREATE PROCEDURE StoredProc2() AS
....
EXEC StoredProc1 @keyID = 1
I need to obtain value1, value2 and value3 from the StoredProc1.
Any suggestion is greatly appreciated.
Calvin