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 > Result Set Return Limit???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-04, 11:17
Caslan Caslan is offline
Registered User
 
Join Date: Feb 2004
Location: Georgia
Posts: 2
Result Set Return Limit???

Hello All!!

I am developing an ASP.NET app with VB.NET and tying it into our existing DB2 database. I have recently started to use stored procedures and I am experience varied results with the following senerio.

I have code to fill a dataset (three tables) so I created a stored procedure on the iSeries to return 3 result sets each are Select statements to three files and they work beautifully when ran interactive, all three are pulled back.

Next I implemented it in .NET. I get two tables filled and the third empty.
I then experimented I had the stored procedure return the third table second and modified the VB code to fill the first and third then second table. Again only two tables where populated but this time it was the first and third.

Does anyone know if the communication between .NET and iSeries is causing this to occur, or if the stored procedure is not set up correctly?

Any assistance will be greatly appreciated. I am stumped!!!
Reply With Quote
  #2 (permalink)  
Old 02-29-04, 21:46
kraman_usa kraman_usa is offline
Registered User
 
Join Date: Feb 2004
Posts: 7
db2: result set return limit

Hi Caslan,

You might want to check the stored procedure (CREATE STORED PROCEDURE ddl) parameter definition and there might be a parameter that specifies how many result sets are expected (RESULT SET <integer>) out of the stored procedure.

Try setting it 3; i.e. RESULT SET 3 and let me know how it works.

This should fix the problem. I don't think there would be problem in handling multiple result sets (cursors or recordsets) within DATASET.

Let me know how it works
Reply With Quote
  #3 (permalink)  
Old 03-01-04, 12:47
Caslan Caslan is offline
Registered User
 
Join Date: Feb 2004
Location: Georgia
Posts: 2
Thanks for the reply,

I checked the Result Sets to be returned and had already set it to be 3.

So, I am still not quite sure what the problem could be.
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