Go Back   Velocity Reviews > Newsgroups > DotNet
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

DotNet - Re: Abt Datareader Count

 
Thread Tools Search this Thread
Old 07-08-2003, 03:35 PM   #1
Default Re: Abt Datareader Count


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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump