I need to get and be able to process the result set returned by a stored procedure in the calling stored procedure. How can I do that?
I don't want/am not allowed to use table valued functions.
Thanks, but create table automatically commits if I'm correct ( i'm not sure about temp tables).
One solution that i found was to use a cursor and leave it open (close it and deallocate in the calling stored procedure ).
Don't use stored procedure, use Multistatement table-valued functions or Inline table-valued functions(I think, you need Multistatement...). You can read about user-defined functions in BOL.
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.