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 > DB2 > Difference between DYNAMIC RESULT SET and RESULT SET

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-11, 04:36
Neharao Neharao is offline
Registered User
 
Join Date: Dec 2007
Posts: 49
Difference between DYNAMIC RESULT SET and RESULT SET

Can some one explain me if we really have a difference between mentioning DYNAMIC RESULT SET and RESULT SET in DB2 Stored Procedures.

And also will it error out if I have specfied DYNAMIC RESULT SET 3 and Declared 4 CURSORS in the Procedure with "WITH RETURN TO CLIENT FOR" Clause.
Reply With Quote
  #2 (permalink)  
Old 03-17-11, 08:58
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by Neharao View Post
Can some one explain me if we really have a difference between mentioning DYNAMIC RESULT SET and RESULT SET in DB2 Stored Procedures.
Technically none
DYNAMIC RESULT SETS is the correct db2 syntax
An equivalent is "RESULT SETS" that has been provided for compatibility with previous versions of DB2 and with other database products

Quote:
Originally Posted by Neharao View Post
And also will it error out if I have specfied DYNAMIC RESULT SET 3 and Declared 4 CURSORS in the Procedure with "WITH RETURN TO CLIENT FOR" Clause.
Please try an example yourself and let us know ;-)

HTH
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

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