Can we know the rowcount of the number of rows that are fetched after a read call is made ?
Summary
Can we know the rowcount of the number of rows that are fetched after a read call is made ?Content
Can we know the rowcount of the number of rows that are fetched after a read call is made ?
At the moment, the only workaround I have is run the foreach loop twice, if I need to know the row count.
First foreach would iterate and find the row count by incrementing the counter.
Second foreach would do what needs to be done on each row.
Looking for an option to avoid the first foreach call if there is a direct way to know the readcount or the size of the rows that are read.
1