Re: Abt Datareader Count

Discussion in 'ASP .Net' started by Derek LaZard, Jul 8, 2003.

  1. Derek LaZard

    Derek LaZard Guest

    Ray:

    Hi. The DataReader has only *forward* readonly capability; and *user*
    indexing into the data structure is not yet available...other controls(
    dataGrid) can get the record count; but human users cannot...

    Derek LaZard

    "Ray Cassick (home)" <> wrote in message
    news:#...
    > If I am not mistaken, the dataReader from the V1.1 framework supports a
    > recordCount property now.
    >
    > "Jim Blizzard [MSFT]" <> wrote in message
    > news:3ef4e6a1$...
    > > A DataReader (doesn't matter if it's SQL, OLEDB, ORACLE, ODBC) is

    > read-only
    > > and forward-only. There's no way to scroll backwards. To get the count

    /
    > > length would require passing through the entire set of data and there

    > would
    > > be no way to get back to the beginning.
    > >
    > > You could use a DataSet instead of a DataReader.
    > >
    > > Hope this helps.
    > >
    > > --
    > > Jim Blizzard
    > > Sr .NET Developer Specialist
    > > Microsoft
    > >
    > > Your Potential. Our Passion.
    > >
    > > This posting is provided "AS IS" with no warranties, and confers no

    > rights.
    > > Please reply to newsgroups only. Thanks.
    > >
    > >
    > > "Anandraj" <> wrote in message
    > > news:...
    > > > Hi
    > > > I am using OELDBDatareader I want to find the number of records in the
    > > > Datareader.
    > > > I don't find any methods like count and length.
    > > > Any Other way is there?
    > > >
    > > > Thanks
    > > > Anandraj.A.
    > > >
    > > >

    > >
    > >

    >
    >
     
    Derek LaZard, Jul 8, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    559
    Ray Andraka
    Mar 3, 2005
  2. prasad

    abt floating point numbers

    prasad, Jan 27, 2006, in forum: VHDL
    Replies:
    1
    Views:
    582
    David Bishop
    Feb 4, 2006
  3. samrat

    question abt speech apllication

    samrat, Nov 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    374
    charles
    Nov 5, 2003
  4. Kevin
    Replies:
    2
    Views:
    9,189
    Kevin
    Dec 18, 2003
  5. David C

    DataReader record count

    David C, Sep 30, 2009, in forum: ASP .Net
    Replies:
    7
    Views:
    1,080
    Gregory A. Beamer
    Sep 30, 2009
Loading...

Share This Page