You cannot delare a cursor that fetches the output of a stored procedure directly as in
Declare MyCursor Cursor For
Exec MyProc
However, you can insert the output of the stored procedure into a temporary table and then select from the temp table into the cursor.
Insert #temp
exec MyProc
declare mycursor cursor for
Select * From #temp Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.