How to use stored procedure in inner joins?
+1
A:
you can't. what you can do is rewrite your scprocs into table valued user definde functions and then join to them.
you'll have to expand a bit on your question though.
Mladen Prajdic
2009-07-02 09:56:01
+1 - You should check out table valued functions and look at converting your sprocs into those if you want to join directly to the results.
ConcernedOfTunbridgeWells
2009-07-02 10:38:33
A:
Look at combining INSERT and EXEC.
Update- here's an example- scroll down to INSERT and EXEC. You can then do the join on the temporary table.
However I recommend you do this via other mechanisms- see here to find out why.
RichardOD
2009-07-02 09:56:53
Shubh
2010-05-17 10:13:40