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 November 5th, 2007, 05:43 PM
Authorized User
 
Join Date: Jun 2007
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Oracle stored proc Bulk Collect

Hi,
I m using the BULK Collect in Oracle to improve the performance of my stored proc.
I dont know how to retrieve data from this stored proc in .net.
I am using C#.

I tried executing the stored proc using command.ExecuteReader.
It executes fine...But when I say while Reader.read(), it comes out of the loop. There is no data in the reader.

Regards,
--Monika
 
Old November 6th, 2007, 07:42 AM
Friend of Wrox
 
Join Date: Oct 2007
Posts: 130
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via AIM to urtrivedi
Default

First your stored procedure must have select statement in the end.
In between do not execute select statement.
 set commandtext of your reader object to name of your stored procedure;
then add parameters to you reader object according to your procedure

reader.executereader()

while(dr.read())
//do you work

end while


urt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk insertion from a data table to oracle databas Alexkure ASP.NET 1.0 and 1.1 Professional 0 November 12th, 2008 03:24 AM
Bulk Insert in Oracle 9i from Classic ASP (ADO) rupen Classic ASP Databases 0 January 11th, 2008 07:49 AM
Calling an insert stored proc from a select stored dzitam SQL Language 10 April 2nd, 2007 12:39 PM
How to get value from stored proc busybee ASP.NET 1.0 and 1.1 Basics 4 April 2nd, 2006 01:06 AM
Bulk Inserting from VB to Oracle parshavgarg Pro VB Databases 0 July 29th, 2004 07:18 AM





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