D
Dune
Hi there,
I'm executing a stored procedure using a command object
and the executeReader method. The result is returned as a
sqldatareader.
I need to know the number of rows in the sqldatareader and
I've tried using the RecordsAffected property but that
seems to always return -1, no matter how many rows is
actually in the sqldatareader.
Any ideas as to why this is happenning?
Cheers
I'm executing a stored procedure using a command object
and the executeReader method. The result is returned as a
sqldatareader.
I need to know the number of rows in the sqldatareader and
I've tried using the RecordsAffected property but that
seems to always return -1, no matter how many rows is
actually in the sqldatareader.
Any ideas as to why this is happenning?
Cheers