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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp

Status
Not open for further replies.

site

Programmer
Oct 23, 2001
44
AT
Hi,

Can I do this way:

select name from (execute sp_student). I really want to get this field from sp.

Many Thanks.

Jing
 

No, unfortunately you can't. You can create a temporary table and insert the output of teh stored proc into the table. Then select the record(s) form the table.

/* modify to match the output of the SP */
create table #t (ColStudent varchar(40))

insert #t
exec sp_student

select * from #t

Drop table #t Terry Broadbent

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top