OleDbDataReader record count

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    OleDbDataReader record count

    Hi

    How can I found the record count in a OleDbDataReader ?

    Thanks

    Regards


  • RobinS

    #2
    Re: OleDbDataReader record count

    Read through all the records? I think a DataReader only provides one record
    at a time. You could do a query to get the rowcount before doing the query
    to retrieve the data, or use a dataset instead.

    RobinS.
    -----------------
    "John" <John@nospam.in fovis.co.ukwrot e in message
    news:%23V082z0U IHA.4740@TK2MSF TNGP02.phx.gbl. ..
    Hi
    >
    How can I found the record count in a OleDbDataReader ?
    >
    Thanks
    >
    Regards
    >

    Comment

    Working...