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

procedure into a select query 1

Status
Not open for further replies.

Cagliostro

Programmer
Sep 13, 2000
4,226
GB
Hi,
Is it possible to put stored procedure into a select query? and if yes, how? John Fill
1c.bmp


ivfmd@mail.md
 
no, if you are using sql 2000 you could recode your procedure as a function which can be selected from.
 
It is very good, but I how about MSSQL7? John Fill
1c.bmp


ivfmd@mail.md
 

In MSSQL7 you have no way to directly Select from a stored procedure. However, you can Insert the output of a stored procedure into a table (temporary or otherwise) and then select from the table.

Example:

Insert #tmptbl Exec MyProc

Select * From #tmptbl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top