I have a stored procedure which returns a Dataset(Table)
. How can I use the result of this stored procedure in a SELECT
statement?
I need s
Use Insert Into ... Exec and store the result into a Temp Table... Then you can join the Temp table in your select statement.
Alternatively as suggested before try converting the SP into a Table valued function.
This link provides much more options for you... http://www.sommarskog.se/share_data.html