Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jung1975
Aged Yak Warrior
503 Posts |
Posted - 2006-01-09 : 13:59:10
|
| How can I join two outputs of stored procedures in one select statement?i.e)Exec SP1JoinExec Sp2 |
|
|
druer
Constraint Violating Yak Guru
314 Posts |
Posted - 2006-01-09 : 15:03:56
|
| Create table #temp1 (blah -blah -blah)Create table #temp2 (blah -blah -blah)insert into #temp1exec sp1insert into #temp2exec sp2select f1, f2, f3 whateverfrom #temp1 inner join #temp2 on whatever |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-01-10 : 01:22:23
|
| You cant directly join the resultset of two or more stored proceduresThe only way is to use temp tables and do union allselect columns from #temp1union allselect columns from #temp2MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|