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)
 Calling stored procedure like a UDF

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-05 : 00:10:42
Apoorva writes "Hi All,
Is it possible to call a stored procedure like a user-defined function as part of another SQL string in SQL Server 7.0?
For example I wish to call a stored procedure 'sp_storedproc' (which has a select statement in the end) from within another sql statement like : 'Select Field1 From table1 Where Field2 IN (sp_storedproc)' ??? (where sp_storedproc returns a list of values, using a select statement)

I am ussing Windows NT 4.0 and SQL 7.0
Many thanks in advance.

Apoorva"
   

- Advertisement -