Number of Rows?
Posted by: Richard Funaki
Date: April 24, 2009 02:07PM

Hello,

I've been searching around for some time now for something that seems like a simple request, but I can't come across a solution. I am trying to get the number of returned rows from a DataReader object without using an aggregate like "COUNT()" and then running the Scaler query to return the value. Is there a simple way of doing this with Connector/NET? For those familiar with PHP, something similar to the mysql_num_rows() function. I see the DataReader has a RecordsAffected member, but it does not return the number of read rows, nor do I understand why this member is on the DataReader class as it is a forward only reader that isn't necessarily used for updating,deleting, etc.

Any help would be greatly appreciated.

Thanks,
- Rick F

Options: ReplyQuote


Subject
Written By
Posted
Number of Rows?
April 24, 2009 02:07PM
April 28, 2009 08:35AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.