Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 select smth from a stored procedure output

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-18 : 17:57:19
Cristina writes "I have a stored proc like this:

create procedure myproc
(@a int)
as
select Item, Quantity
from Orders
where OrderID = @a
go

In another stored proc I would like to do the following:

select * from (exec myproc 2)

Why isn't it working? Or, how can I filter the output recorset of a stroed proc in another stored proc?

Thanks"
   

- Advertisement -