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 |
|
mmdullah
Starting Member
10 Posts |
Posted - 2009-10-15 : 01:53:36
|
| how to catch recordset in an sp that calls another sp.the scenario is like this:create procedure sp_callee /* parametr list*/asbeginselect * from Employee/* exact code is more complex*/endcreate procedure sp_caller asbegindeclare @retVal table(-- as same columns as in Employee table)-- my question is how to store result from sp_callee into @retVal insert into @retVal select * from(exec sp_callee /* parameter list*/)endurgent need. any help will be appriciated.thanks in advance |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-10-15 : 01:56:54
|
[code]insert into @retVal exec sp_callee[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|