get rowcount from select SP before returning all records?

  • Thread starter Thread starter John B
  • Start date Start date
J

John B

Is is possible to obtain the number of records that would be returned by a
select sp without actually returning the records.
I have been looking at executescalar but this returns -1 for selects.

Thanks

John
 
It is not the executing that I am bothered about. It is passing the data
across the network to the client.
 
Back
Top