If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > stored procedure returning multiple result sets(sybase)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-23-10, 13:36
nethawkdb nethawkdb is offline
Registered User
 
Join Date: Mar 2010
Posts: 1
Question stored procedure returning multiple result sets(sybase)

Hello All,


I am new to stored procedure programming.I have the below mentioned scenario.


I have got two stored procedures p1 and p2. from p1 I am calling p2.
p2 returns two result set's. I need to store one of the result set returned by p2 to a temporary table in p1.


p2 does not have any out parameter, it just has two select's which returns two resultset's.

Please let me know if this is possible.
Reply With Quote
  #2 (permalink)  
Old 03-26-10, 11:27
kingmaker2008 kingmaker2008 is offline
Registered User
 
Join Date: Jun 2008
Posts: 7
I think this is not possible. A better approach is that creating temp table in p2 SP and inserting values in it. From P1, those results can be retrieved from the temp tables.

These temp tables either may be temp tables or permanent tables. In the latter one, temp tables should be dropped explicitly.
Reply With Quote
Reply

Tags
multiple resultset, stored procedure, sybase

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On