Select a column returned by a stored procedure
Posted
by vaibhav
on Stack Overflow
See other posts from Stack Overflow
or by vaibhav
Published on 2010-05-17T07:40:18Z
Indexed on
2010/05/17
7:50 UTC
Read the original article
Hit count: 227
I have a stored procedure which is returning me about 50 columns. I want to write a query, where I will be able to select a particular column from the list of column returned by the SP.
I tried writing select RSA_ID from exec(uspRisksEditSelect '1')
But Its throwing me an error.
I think we need to write some dynamic sql for it. But I am new to it.
© Stack Overflow or respective owner