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 |
tifosi
Starting Member
1 Post |
Posted - 2006-06-05 : 07:36:16
|
Hi, I am calling one sp say spABC from another sp say spXYZ. spABC returns 3 tables. How can i identify 3 distinct tbles in my calling sp? I need to set values in all tables depending on the value in one column of one table. |
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
Posted - 2006-06-05 : 07:58:39
|
what do you mean when you say, "spABC returns 3 tables"?If you mean 3 seperate result sets, you won't be able to capture them in a calling SP unless all result sets have the same columns returned. If they do you could:insert #temp(<colList>)exec myCalledSPBut again, the SP can't return one or more Sql Server Table objects. They can only return result sets, output variables (not of table type), and return codes.Be One with the OptimizerTG |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-06-05 : 08:56:07
|
If you use front end application like vb, asp, etc, make use of RecordSet and its NextRecordSet--rs("col") first result setSet Rs=Rs.NextRecordSet--rs("col") Second result setSet Rs=Rs.NextRecordSet--rs("col") third result setMadhivananFailing to plan is Planning to fail |
|
|
|
|
|