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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top