MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing multiple rows as parameter to a Stored Procedure

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
SMS
Beginner


Joined: 16 Oct 2005
Posts: 53
Topics: 24

PostPosted: Tue Mar 18, 2008 10:31 am    Post subject: Passing multiple rows as parameter to a Stored Procedure Reply with quote

Hi,

I have been brainstorming for the following requirement.

From the front end, around 20,000 rows that are present on the grid needs to be saved to a DB2 table with the connection extablished thru DB2connect. But it's taking very very long time from the front end.

So we thought of passing the data to a stored procedure instead of saving in the front end to improve the performance. The stored procedure cannot directly pull the data from the source table and the data has to transmitted to SP only from the front end grid. So front end has to call the SP for each row. But there may be 20,000 calls to the stored procedure which is not an efficient design. Also, the option of saving the data to a text file and FTP-ing to the backend is also eliminated.

Is there any other way to pass these 20,000 rows (average row length 500byts) on the fly to a Stored Procedure ?

I would appreciate any suggestions from you experts.
_________________
Regards,
SMS
Back to top
View user's profile Send private message
dr_te_z
Beginner


Joined: 08 Feb 2007
Posts: 18
Topics: 3

PostPosted: Thu Mar 20, 2008 6:10 am    Post subject: Reply with quote

Some kind of temp-table/MQT like solution
or
concider a federated database solution so you c
Back to top
View user's profile Send private message
SMS
Beginner


Joined: 16 Oct 2005
Posts: 53
Topics: 24

PostPosted: Mon Mar 24, 2008 7:47 am    Post subject: Reply with quote

Thanks, I will look into it.
_________________
Regards,
SMS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group