views:

97

answers:

3

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
+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
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
Thanx for thisMy Prob may be solved
Shubham Jain
A: 

hii shubham, what are u doing.

Shubh
i m fine wt abt u whr r u
Shubham Jain
Shubh