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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-03-25 : 08:28:00
|
| Hilly writes "How can I load the resultset from a SP into a CURSOR in another SP?" |
|
|
ToddV
Posting Yak Master
218 Posts |
Posted - 2002-03-25 : 09:14:38
|
quote: Hilly writes "How can I load the resultset from a SP into a CURSOR in another SP?"
Do you really need a cursor?An answer to your question is: use a temp table.Create table #temp( Col1 INT)Insert #TempEXEC SP1Declare...CursorFOR...From #TEMP |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-03-25 : 10:50:33
|
| Why would you want to put a cursor on a temp table?You can easily perform row by row processing on it without the overhead of a cursor - if that's what you really want to do.==========================================Cursors are useful if you don't know sql.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|