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 > 'DYNAMIC RESULT SETS' Vs 'RESULT SETS'

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-07, 06:36
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
'DYNAMIC RESULT SETS' Vs 'RESULT SETS'

What is the difference of using 'DYNAMIC RESULT SETS' Vs 'RESULT SETS' in a stored procedure?

I see example of stored procedures with both the clauses used. The document only speaks about 'DYNAMIC RESULT SETS'.

What is the impact / behaviour of using 'RESULT SETS'?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-05-07, 08:13
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What version of DB2 and what OS are you using? I checked the documentation for both V8 and V9 of DB2 for LUW and there is only the "DYNAMIC RESULT SETS" clause, there is no clause with just "RESULT SETS".

Andy
Reply With Quote
  #3 (permalink)  
Old 03-05-07, 22:41
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
In a V7 sp code I found the 'RESULT SETS' alone used. The same clause was used when the SP was migrated to V8.

Now, I see in the SQL Reference V7.2 PDF that it says the following:
"The value RESULT SETS may be used as a synonym for DYNAMIC
RESULT SETS for backwards and family compatibility."

What is the impact if only 'RESULT SETS' is used in V8 stored procedure also?

TIA.
Reply With Quote
  #4 (permalink)  
Old 03-06-07, 06:35
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Try it ;-)

If you do not get a syntax error, then there is not going to be any impact for now .. Migration to future versions might fail ...

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 03-06-07, 07:10
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
"result sets" is a synonym for "dynamic result sets".
There's no difference.
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