You can do this by:
1. creating a temporary table which matches the structure of the "table" that the sp returns, then
2. use an INSERT EXEC statement to put the data into the temporary table, then
3. do a SELECT against the temporary table including your WHERE clause
Here's an example using one of the stored procs in Northwind:
Code:
CREATE TABLE #tmp1
( ProductName nvarchar(40),
UnitPrice money)
INSERT #tmp1
EXEC [Ten Most Expensive Products]
SELECT * FROM #tmp1 WHERE UnitPrice < 100
DROP TABLE #tmp1
hth
Phil