1

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?

Phil
  • 55
  • 4

1 Answers1

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
  • 2,980
  • 1
  • 17
  • 26