I have a stored procedure that I cannot modify, but I need to add a where clause to filter it even more. What would be the best way to do this without inserting data from stored procedure to a temptable then doing a where on that temptable. Is there another way?
Asked
Active
Viewed 98 times
1 Answers
0
The store procedure is executable but filtering happens inside the select statement so you should bring the result in a table to select it. There is no way except temp tables. Table valued Udf also has table like temp tables.

Amir Keshavarz
- 3,050
- 1
- 19
- 26