Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2009, 10:46 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Oracledatareader: reading multple out cursors

Hi,

I am creating an DAL which will pass a stored procedure to Oracle Data base with 5 return (out) cursors. All these out cursors are different tables from oracle and are interlinked with eachother with primary and foriegn keys. I need to read the fist cursor and use the relationship to loop through the other four cursors and fill them in a business object. As this involves of reading only and volume of data that comes out , I choose to use OracleDataReader over datasets which will be perfromance issue and am writing code in C#

My questions :
How to loop through all these cursors with the relationship?
I can use :

OracleDataReader dr = cmd.ExecuteReader();
while(dr.read())
{
/Fill the data for the object
}
dr.NextResult()
..

But here I dont know how to relate the cursors.

Do I need to fill everyhting first in a Table and can associate it?
Any help/suggestions will be appreciated.

Thanks

Last edited by mlingamus; January 27th, 2009 at 11:23 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Data from Oracle cursors k_kosaraju ADO.NET 2 January 27th, 2009 11:38 AM
Maximum number of cursors exceeded. zaheerabbas.sk Oracle 1 July 4th, 2008 04:41 AM
MYSQL and Cursors paulkholt MySQL 1 September 8th, 2004 08:25 AM
Custom Cursors gp_mk Classic ASP Basics 0 May 29th, 2004 03:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.