Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there a way to return only specific columns from a stored procedure when called from another stored procedure?

something like
SQL
SELECT Col1, Col2 FROM EXEC SP_Temp 'param1'
Posted
Updated 26-Jul-12 20:44pm
v2

1 solution

This is sloppy code before you start. I would never do this ( call one proc from another like this ) and if you do, I think your options are limited. But, because I know how to use google, I was able to find this[^].
 
Share this answer
 
Comments
ssd_coolguy 27-Jul-12 7:44am    
nice discussion in link....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900