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
 Transact-SQL (2000)
 Stored Procedure in Subquery

Author  Topic 

bridge
Yak Posting Veteran

93 Posts

Posted - 2005-12-28 : 07:08:54
is it possible to execute the stored procedure in the subquery. If yes please tell me how?

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2005-12-28 : 07:18:34
It's not possible. But why do you want to call stored procedure in Subquery?

Insert the data in a temporary table and use the temporary table in subquery.

Regards
Sachin




Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page

bridge
Yak Posting Veteran

93 Posts

Posted - 2005-12-28 : 07:21:05
The resultset of the stored procedure will be used in other procedures.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-28 : 07:45:19
You need to make use of Functions if you want to use the result in each row or subquery

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2005-12-28 : 07:46:44
To be more precise... you can use inline function.

Regards
Sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu
Go to Top of Page
   

- Advertisement -