Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

capturing result set output into a variable?

Status
Not open for further replies.

katbear

Programmer
Mar 14, 2007
270
US
Never thought about this before. But I'm calling a stored proc from a stored proc. The inside proc returns a couple rows to the screen, like this:

This is the sp output...
NULL

I want to capture the first row (message) into a variable. How would I do this??

Thanks much
 
Not sure I understand this:

insert exec into a temp table and select into a variable from there

Not sure how I would do this in this case? I'm calling the stored proc inside a cursor multiple times, also. So there could be multiple outputs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top