Yuriy Galanter
2008-01-31 21:40:11 UTC
Hi all,
I have a stored procedure that return a result set. I need to be able to run
a selection on that result set, something like
SELECT * FROM EXEC...
I know it's a well known problem, but due to my situation I cannot use
commonly available solutions. The Stored procedure already uses INSERT
INTO... EXEC of it's own, so I cannot use INSERT INTO temp table outside of
it. I cannot modify the SP (it's used in many other places) so solutions
like passing parameters or create temporary table for SP outside of it are
out of the questions. I am also very reluctant to use OPENQUERY and
OPENROWSET methods.
Any alternatives?
Thanks in advance!
Yuriy.
I have a stored procedure that return a result set. I need to be able to run
a selection on that result set, something like
SELECT * FROM EXEC...
I know it's a well known problem, but due to my situation I cannot use
commonly available solutions. The Stored procedure already uses INSERT
INTO... EXEC of it's own, so I cannot use INSERT INTO temp table outside of
it. I cannot modify the SP (it's used in many other places) so solutions
like passing parameters or create temporary table for SP outside of it are
out of the questions. I am also very reluctant to use OPENQUERY and
OPENROWSET methods.
Any alternatives?
Thanks in advance!
Yuriy.