Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Recordset For Cursor
Message
 
 
To
05/01/2001 10:38:16
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00459813
Message ID:
00459820
Views:
30
>I have to two procedures, say Proc1 and Proc2. Proc1 wants to use a Cursor, but wants the Cursor populated from a result recordset produced by Proc2. Can this be done?

Use a global temporary table.

Proc2
select * into ##tmptable from mytable


Proc1
select * from ##tmptable
drop table ##tmptable
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform