May 2, 2014 at 5:01 am
Hi,
Is it possible to use Stored Procedures inside query? I have SP with some results and is it possible to use that inside a query.
May 2, 2014 at 5:38 am
Only with major trickery, not recommended.
You could INSERT INTO #temp (column_list) EXEC sp, or alternatively reform the sp as a table-valued function, preferably inline.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 2, 2014 at 6:30 am
If the SP can be modified to a TVF, then you can use the result in your query.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply